Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
wctomb - convert wide character code to character
&pagelevel(4)&pagelevel
Syntax | #include <stdlib.h> int wctomb(char *s, wchar_t wchar); |
Description | wctomb() converts the wchar_t value wchar to the appropriate multi-byte character and stores it in string s. No characters consisting of multiple bytes are implemented in this version. Multi-byte characters always have a length of 1 byte, and wchar_t values are always of type long .
wcstomb() assigns the wchar_t value (of type long ) to the area s, of 1-byte length. No assignment occurs if s is a null pointer or if the wchar_t value cannot be represented in 1 byte.
|
Return val. | 0 | if s is a null pointer. |
| -1 | if the wchar_t value cannot be converted to a multi-byte character. |
| 1 | in all other cases. |
Notes | Restriction This version of the C runtime system only supports 1-byte characters as wide character codes. They are of type wchar_t (see stddef.h ). (End) |
See also | mblen() , mbstowcs() , mbtowc() , wcstombs() , stdlib.h .
|