STRLEN(3) Linux Programmer's Manual STRLEN(3)

strlen - calculate the length of a string

#include <string.h>

size_t strlen(const char *s);

The strlen() function calculates the length of the string s, not including the terminating `\0' character.

The strlen() function returns the number of characters in s.

SVID 3, POSIX, 4.3BSD, ISO 9899

string(3)

1993-04-12

Different Versions of this Page: