Defined in header <cwchar> std::size_t wcrtomb( char* s, wchar_t wc, std::mbstate_t* ps );
Converts a wide character to its narrow multibyte representation.
If s is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of wc (including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s. At most MB_CUR_MAX bytes can be written