C++ Programming/Code/Standard C Library/Functions/strlen

From Wikibooks, open books for an open world
Jump to: navigation, search

strlen[edit]

Syntax
#include <cstring>
size_t strlen( char *str );

The strlen() function returns the length of str (determined by the number of characters before null termination).

Related topics
memcpy - strchr - strcmp - strncmp