Chapter 11: Predefined Macros
strlen
strlen
Function
String length
Synopsis
unsigned long strlen (str1)
char *str1;
Description
The strlen macro returns the length of a string. It returns the length of str1,
excluding the NULL character.
Diagnostics
If str1 is not properly terminated by a NULL character, the length returned is
invalid.
476