Extract substring from string
returns the substring of length
dest = substr(
n starting at the
i-th character of string
"Stateflow" from a longer
str = "Stateflow rule the waves"; dest = substr(str,0,9);
Use in Stateflow® charts that use C as the action language.
Use zero-based indexing.
Enclose literal strings with single or double quotes.