Locale-Sensitive C/C++ String Operation Functions
char *strstr( const char *string, const char *strCharSet );
wchar_t *wcsstr( const wchar_t *string, const wchar_t *strCharSet );
wchar_t *wcswcs( const wchar_t *string, const wchar_t *strCharSet );
unsigned char *_mbsstr( const unsigned char *string, const unsigned char *strCharSet );
TCHAR *_tcsstr( const TCHAR *string, const TCHAR *strCharSet );
Internationalization (I18n) Function Overview
The strstr function returns a pointer to the first occurrence of strCharSet in string , or NULL if strCharSet does not appear in string . If strCharSet points to a string of zero length, the function returns string .
wcsstr is the wide version of the function; its parameters and return are wide character strings.
wcswcs is a deprecated alias for wcsstr . Use wcsstr instead.
_mbsstr is supported only on Windows platforms and is the multibyte version of the function; its parameters and return are multibyte character strings.
_tcsstr is the Windows-only Generic version of strstr .
I18n Issues
For Windows MBCS platforms, ensure that the multibyte code page is set properly, as _mbsstr 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
|