Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > strlen

strlen

Example: strlen String Manipulation Functions

Returns the length (in bytes) of a string.

size_t strlen( const char *string);

string The string whose length is returned.

Return Values

strlen returns the length (in bytes) of a string.