Multibyte to Wide Character Conversion Function
int mbtowc(wchar_t *wchar, const char *mbchar, size_t count);
Internationalization (I18n) Function Overview
The mbtowc function converts up to count bytes pointed to by mbchar
into a wide character, and stores the result in wchar . If successful, mbtowc returns the
length in bytes of the multibyte character; otherwise, it returns 0 if
mbchar is NULL or points to a null wide character (L'\0'), or -1
if mbchar points to an invalid multibyte character within the first count characters.
I18n Issues
Prior to calling mbtowc , ensure that the current locale is set correctly.
Recommended Replacements*
There are no variations of this conversion function.
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
Multibyte and Wide
Character Conversion Functions
|