INtime SDK Help
wctomb (ANSI)

Converts a wide character to the corresponding multibyte character and stores it in a specified location.

#include <stdlib.h>

int wctomb (char *mbchar, wchar_t wchar);

Parameters

mbchar
The address of a converted multibyte character.
wchar
A wide character to convert.

Return Values

The number of bytes, never greater than MB_CUR_MAX, in the wide character.
Success.
0 if wchar is the wide-character null.
-1 if the conversion is not possible in the current locale.
Failure.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/stdlib.h stdlib.h clib.lib

See Also

mblen, mbstowcs, wcstombs