src/lib/common/string.c
/// Compute the length of a string
///
/// The strlen() function calculates the length of the string \a s, not
/// including the terminating \b '\0' character.  The strlen() function
/// returns the number of characters in \a s.
Compute the length of a string
The strlen() function calculates the length of the string \a s, not
including the terminating \b '\0' character.  The strlen() function
returns the number of characters in \a s.
Compute the length of a string The strlen () function calculates the length of the string \ a s not including the terminating \ b ' \ 0 ' character . The strlen () function returns the number of characters in \ a s .
size_t
strlen(const char *s)
{
    const char *p = s;
    while (*p) {
        p++;
    }
    return p - s;
}
size_t strlen ( const char * s ) { const char * p = s ; while ( * p ) { p ++ ; } return p - s ; }
Compute the length of a string
The strlen() function calculates the length of the string \a s, not
including the terminating \b '\0' character.
Compute the length of a string The strlen () function calculates the length of the string \ a s not including the terminating \ b ' \ 0 ' character .