aboutsummaryrefslogtreecommitdiffstats
path: root/memory/wmempcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'memory/wmempcpy.c')
-rw-r--r--memory/wmempcpy.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/memory/wmempcpy.c b/memory/wmempcpy.c
new file mode 100644
index 0000000..67820f0
--- /dev/null
+++ b/memory/wmempcpy.c
@@ -0,0 +1,10 @@
+#include "memory.h"
+
+wchar_t *wmempcpy(wchar_t *restrict destination, wchar_t const *restrict source,
+ size_t count)
+{
+ size_t i = 0;
+ for (i = 0; i < count; i++)
+ destination[i] = source[i];
+ return &destination[i];
+}