std::strlen

From Cppreference

Jump to: navigation, search
Defined in header <cstring>

size_t strlen( char *str );

Returns the length of the given character string.

[edit] Parameters

str - pointer to the null-terminated character string to be examined

[edit] Return value

the length of the null-terminated string str.

[edit] Example