< C++ Programming < Code < Standard C Library < Functions

strlen

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
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.