strlen()
Returns the length of the text.
Syntax
strlen(text) (#include <string.h>)
Description
Returns the number of characters (requires string.h). The result is size_t; cast to (int) for %d.
Example
Loading editor…
Expected output
7
When to use?
Length check.