Wide to Multibyte Character Conversion Function
size_t wcrtomb(char *s, wchar_t wc, mbstate_t *ps);
Internationalization (I18n) Function Overview
The wcrtomb function converts the wide-character wc to a multibyte string and stores the result in s , if s is not NULL .
It uses the mbstate_t ps to track the state of the conversion and returns
the number of bytes successfully converted, not including the terminating null byte; else (size_t)-1 in the event of an error.
If s is a null pointer, wcrtomb resets the state stored in ps to the initial state.
I18n Issues
Prior to calling wcrtomb , 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

|