Determine length of string
L = strlen(str)
example
L = strlen(str) returns the number of characters in the string str.
L
str
expand all
Return a value of 9.
9
L = strlen("Stateflow");
Use in Stateflow® charts that use C as the action language.
Enclose literal strings with single or double quotes.