1 #include <stdlib.h> 2 #include <wchar.h> 3 mbstowcs(wchar_t * restrict ws,const char * restrict s,size_t wn)4 size_t mbstowcs(wchar_t *restrict ws, const char *restrict s, size_t wn) 5 { 6 return mbsrtowcs(ws, (void*)&s, wn, 0); 7 } 8