size_t - C string.h

C examples for string.h:size_t

Type

type

From

<string.h>

Description

Alias of the unsigned integer types and represent the size of any object in bytes.

Demo Code

#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;
}

Related Tutorials