Locale-Sensitive C/C++ String Operation Function
char *_strset(char* string, int c);
unsigned char *_mbsset(unsigned char* string, int c);
wchar_t *_wcsset(wchar_t* string, int c);
_TXCHAR *_tcsset(const _TXCHAR* string, int c);
Internationalization (I18n) Function Overview
The _strset function fills string with the character c , except for the terminating null character. It returns a pointer to the modified string.
_mbsset and _wcsset are the multibyte and wide versions of _strset . The argument and return value of _mbsset are multibyte-character strings; those of _wcsset are wide-character strings.
_tcsset is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _mbsset or _wcsset .
I18n Issues
For Windows MBCS platforms, ensure that the multibyte code page is set properly, as _mbsset depends on it. By default, the multibyte code page is set to the system-default ANSI code page obtained from the operating system at program startup. Use _getmbcp and _setmbcp to query or change the current multibyte code page, respectively.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
Locale-Sensitive C/C++
String Operation Functions
|