aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/multibyte/mbstowcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/lib/libc/musl/src/multibyte/mbstowcs.c')
-rw-r--r--system/lib/libc/musl/src/multibyte/mbstowcs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/multibyte/mbstowcs.c b/system/lib/libc/musl/src/multibyte/mbstowcs.c
new file mode 100644
index 00000000..dc0d4594
--- /dev/null
+++ b/system/lib/libc/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);
+}