summaryrefslogtreecommitdiff
path: root/src/string/wcscpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/wcscpy.c')
-rw-r--r--src/string/wcscpy.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/string/wcscpy.c b/src/string/wcscpy.c
new file mode 100644
index 00000000..e0ac194f
--- /dev/null
+++ b/src/string/wcscpy.c
@@ -0,0 +1,8 @@
+#include <wchar.h>
+
+wchar_t *wcscpy(wchar_t *d, const wchar_t *s)
+{
+ wchar_t *a = d;
+ while ((*d++ = *s++));
+ return a;
+}