String Manipulation (Windows CE 5.0)
Developing an Application > Microsoft C Run-time Library for Windows CE > Run-time Routines by Category
String manipulation routines operate on null-terminated single-byte character and wide-character strings. Use the buffer-manipulation routines, described in Buffer Manipulation, to work with character arrays that do not end with a null character.
Generally, Windows CE supports wide-character versions of functions rather than other versions. This enables Windows CE to support Unicode while keeping the library compact.
Routine | Use |
---|---|
sprintf, swprintf | Writes formatted data to a string |
strcat, wcscat | Appends one string to another |
strchr, wcschr | Finds first occurrence of specified character in string |
strcmp, wcscmp | Compares two strings |
strcpy, wcscpy | Copies one string to another |
strcspn, wcscspn | Finds first occurrence of character from specified character set in string |
_strdup, _wcsdup | Duplicates string |
_stricmp, _wcsicmp | Compares two strings without regard to case |
strlen, wcslen | Finds length of string |
_strlwr, _wcslwr | Converts string to lowercase |
strncat, wcsncat | Appends characters of string |
strncmp, wcsncmp | Compares characters of two strings |
strncpy, wcsncpy | Copies characters of one string to another |
_strnicmp, _wcsnicmp | Compares characters of two strings without regard to case |
_strnset, _wcsnset | Sets first n characters of string to specified character |
strpbrk, wcspbrk | Finds first occurrence of character from one string in another string |
strrchr, wcsrchr | Finds last occurrence of given character in string |
_strrev, _wcsrev | Reverses string |
_strset, _wcsset | Sets all characters of string to specified character |
strspn, wcsspn | Finds first substring from one string in another string |
strstr, wcsstr | Finds first occurrence of specified string in another string |
strtod, wcstod | Converts to double-precision value |
strtok, wcstok | Finds next token in string |
strtol, wcstol | Converts to long integer value |
strtoul, wcstoul | Converts to unsigned long integer value |
_strupr, _wcsupr | Converts string to uppercase |
See Also
Microsoft C Run-time Library for Windows CE | Run-time Library Reference
Send Feedback on this topic to the authors