Wide to Multibyte Character Conversion Function
size_t wcstombs(char *mbstr, const wchar_t *wcstr, size_t count);
Internationalization (I18n) Function Overview
The wcstombs function converts a sequence of wide characters pointed to by wcstr
into a sequence of corresponding multibyte character code points and stores the result in mbstr , ensuring
that no more than count bytes are written.
wcstombs returns the number of bytes successfully converted, not including the terminating null byte;
else (size_t)-1 in the event of an error. If the mbstr argument is
NULL , the function returns the required size of the destination string.
I18n Issues
Prior to calling wcstombs , 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
|