implement mbtowc directly, not as a wrapper for mbrtowc
[musl] / src / multibyte / mbstowcs.c
1 #include <stdlib.h>
2 #include <wchar.h>
3
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 }