mbtowc

mbtowc

Defined in header <stdlib.h>
int mbtowc( wchar_t          *pwc, const char          *s, size_t n )
(until C99)
int mbtowc( wchar_t *restrict pwc, const char *restrict s, size_t n )
(since C99)

Converts a multibyte character whose first byte is pointed to by s to a wide character, written to *pwc if pwc is not null.

If s is a null pointer, resets the global conversion state and determines whether shift sequences are used.

登录查看完整内容