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