aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/string/wmemcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/lib/libc/musl/src/string/wmemcpy.c')
-rw-r--r--system/lib/libc/musl/src/string/wmemcpy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/string/wmemcpy.c b/system/lib/libc/musl/src/string/wmemcpy.c
new file mode 100644
index 00000000..55a8e1d8
--- /dev/null
+++ b/system/lib/libc/musl/src/string/wmemcpy.c
@@ -0,0 +1,9 @@
+#include <string.h>
+#include <wchar.h>
+
+wchar_t *wmemcpy(wchar_t *restrict d, const wchar_t *restrict s, size_t n)
+{
+ wchar_t *a = d;
+ while (n--) *d++ = *s++;
+ return a;
+}