Keil Logo

size_t

The size_t type is defined in stdio.h, stddef.h, stdlib.h, and string.h. This type is used for defining the sizes of strings and memory blocks. It is defined as:

typedef unsigned int size_t;

and is used as shown in the following example:

#include <string.h>

void lfunc (char *string) {
  size_t string_length;

  string_length = strlen(string);
}
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.