Converts a wide-character code to a multibyte character.
#include <stdlib.h> int wctomb ( char *s, wchar_t wchar);
(OUT) Points to the multibyte character.
(IN) Specifies the wide-character code.
If successful, returns the number of bytes in the wide-character code. Otherwise, returns one of the following:
If s is a NULL pointer, returns 0.
If wchar is not a valid character in the current locale, returns -1.
The wctomb function determines the number of bytes required to represent the multibyte character corresponding to the code contained in wchar. If s is not a NULL pointer, the multibyte character representation is stored in the array pointed to by s. At most, MB_CUR_MAX characters are stored.