musl/src/multibyte/mbstowcs.c
Rich Felker b5a527f9ff cleanup mbstowcs wrapper
remove unneeded headers. this file is utterly trivial now and there's
no sense in having a comment to state that it's in the public domain.
2013-04-04 14:53:53 -04:00

8 lines
158 B
C

#include <stdlib.h>
#include <wchar.h>
size_t mbstowcs(wchar_t *restrict ws, const char *restrict s, size_t wn)
{
return mbsrtowcs(ws, (void*)&s, wn, 0);
}