| |||
| Home > RealView Debugger Predefined Macros > Predefined macros listed by function > String manipulation | |||
Table 3.4 contains a summary of the string manipulation macros.
Table 3.4. String manipulation
| Description | See |
|---|---|
| Converts a string to an integer | atoi |
| Converts a string to a long integer | atol |
| Converts a string to an unsigned long integer | atoul |
| Checks if a character is digit | isdigit |
| Checks if a character is lower case | islower |
| Checks if a character is a printable char | isprint |
| Checks if a character is space | isspace |
| Checks if a character is upper case | isupper |
| Converts an int to a string | itoa |
Concatenates two strings | strcat |
Locates the first occurrence of a character in a string | strchr |
Compares two strings | strcmp |
Copies a string | strcpy |
Performs string comparison without case distinction | stricmp |
Returns string length | strlen |
Performs limited comparison of two strings | strncmp |
| Converts a string to lowercase characters | strtolower |
| Converts a string to uppercase characters | strtoupper |
| Removes any starting and trailing white spaces and tabs from a string | strtrim |
| Converts a character to lowercase | tolower |
| Converts a character to uppercase | toupper |