| |||
| Home > RealView Debugger Predefined Macros > Alphabetical predefined macro reference > strtrim | |||
Trims the leading and trailing white spaces and tabs from a string.
This macro trims the leading and trailing white spaces and tabs from a string. The original string is changed.
add char myString[50] cexpression strcpy(myString, " String with spaces before and after. ") cexpression strtrim(myString) printf "|%s|", myString