wctomb Function

Converts a wide character to a multibyte character (see Remarks).

Include

<stdlib.h>

Prototype

int wctomb(char *s, wchar_t wchar);

Arguments

s points to the multibyte character
wchar the wide character to be converted

Return Value

Returns zero if s points to a null character; otherwise, returns 1.

Remarks

The resulting multibyte character is stored at s. The 16-bit compiler does not support multibyte characters with length greater than 1 character.