C examples for string.h:size_t
type
<string.h>
Alias of the unsigned integer types and represent the size of any object in bytes.
#include <stdio.h> #include <string.h> int main ()// w ww . ja v a 2 s. c o m { char str[] = "test73"; char keys[] = "1234567890"; size_t i; i = strcspn (str,keys); printf ("The first number in str is at position %d.\n",i+1); return 0; }