ead
wctomb
[minimal wide char to multibyte converter]
SYNOPSIS
#include
<stdlib.h>
int wctomb(char
* s,
wchar_t wchar);
DESCRIPTION
This is a minimal ANSI-conforming implementation of wctomb.
The only “wide characters” recognized are single bytes, and they are converted”
to themselves.
Each call to wctomb copies the character, wchar, to *s, unless s is a null pointer.
RETURNS
This implementation of wctomb
returns 0
if s
is NULL;
it returns 1
otherwise (reporting the length of
the character sequence generated).
COMPLIANCE
wctomb
is required in the ANSI C standard.
However, the precise effects vary with the locale.
wctomb requires no supporting OS subroutines.
0