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