wctomb---minimal wide char to multibyte converter
#include <stdlib.h> int wctomb(char *s, wchar_t wchar);
This is a minimal ANSI-conforming implementation of
only "wide characters" recognized are single bytes,
and they are "converted" to themselves.
Each call to
wctomb copies the character wchar to
unless s is a null pointer.
This implementation of
NULL; it returns
1 otherwise (reporting the length of
the character "sequence" generated).
wctomb is required in the ANSI C standard. However, the precise
effects vary with the locale.
wctomb requires no supporting OS subroutines.
Go to the first, previous, next, last section, table of contents.