#include <stdlib.h> size_t mbstowcs(wchar_t *wcs, const char *s, size_t n);
Converts a multibyte string to a wide character string. The result will be no more than n wide characters.
The number of wide characters stored.
ANSI, POSIX
int wlen = mbtowcs(wbuf, string, sizeof(wbuf)/sizeof(wchar_t));
Go to the first, previous, next, last section, table of contents.