summaryrefslogtreecommitdiff
path: root/src/string/mempcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/mempcpy.c')
-rw-r--r--src/string/mempcpy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/string/mempcpy.c b/src/string/mempcpy.c
new file mode 100644
index 00000000..e54251cd
--- /dev/null
+++ b/src/string/mempcpy.c
@@ -0,0 +1,7 @@
+#include <string.h>
+
+void *mempcpy(void *dest, void *src, size_t n)
+{
+ memcpy(dest, src, n);
+ return (char *)dest + n;
+}