diff options
Diffstat (limited to 'src/string/mempcpy.c')
-rw-r--r-- | src/string/mempcpy.c | 7 |
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; +} |