mbtowc
Converts a single multibyte character into the wide-character code that corresponds to that multibyte character (nonoperational in NetWare versions 3.11 and earlier)
#include <stdlib.h>
int mbtowc (
wchar_t *pwc,
const char *s,
size_t n);
This function returns a value of 0 for any of the following conditions:
The mbtowc function converts a single multibyte character pointed to by s into the wide-character code that corresponds to that multibyte character.
The code for the NULL character is zero. If the multibyte character is valid and pwc is not a NULL pointer, the code is stored in the object pointed to by pwc. At most, n bytes of the array pointed to by s are examined.
This function is currently implemented for single-byte character coding only.