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