Next: strlwr—force string to lowercase, Previous: strerror_r—convert error number to string and copy to buffer, Up: Strings and Memory (string.h) [Contents][Index]
strlen—character string lengthSynopsis
#include <string.h> size_t strlen(const char *str);
Description
The strlen function works out the length of the string
starting at *str by counting chararacters until it
reaches a NULL character.
Returns
strlen returns the character count.
Portability
strlen is ANSI C.
strlen requires no supporting OS subroutines.