(strlen [string1] [string2] ...)
Determine how many characters are in a string.
This function counts the number of characters in a string, or series of strings. It returns the amount as an integer. If an empty string exists or no string is provided, the value is zero.
Examples
Code | Returns |
---|---|
(strlen "How many?") | 9 |
(strlen "one" "two" "three") | 11 |
(strlen "") | 0 |
(strlen) | 0 |