strlen


Length of character string

[Classification]

Standard library

[Syntax]

#include <string.h>

size_t strlen(const char *s);

[Return value]

Returns the number of characters existing before the null character (\0) indicating termination.

[Description]

This function obtains the length of the character string indicated by s.