diff options
Diffstat (limited to 'libc-top-half/musl/src/multibyte/mbstowcs.c')
-rw-r--r-- | libc-top-half/musl/src/multibyte/mbstowcs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/multibyte/mbstowcs.c b/libc-top-half/musl/src/multibyte/mbstowcs.c new file mode 100644 index 0000000..dc0d459 --- /dev/null +++ b/libc-top-half/musl/src/multibyte/mbstowcs.c @@ -0,0 +1,7 @@ +#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); +} |