Name

strlen — finds the length of a string

Synopsis

int strlen(str);
string str;

Description

strlen returns the length of str as an integer.

Example 51. strlen Example

int length = strlen("Hello, world!");   // length = 13