cuserid: support invocation with a null pointer argument
[musl.git] / src / string / mempcpy.c
bloba297985e6853a38e254f762a80b11838eeb71fb8
1 #define _GNU_SOURCE
2 #include <string.h>
4 void *mempcpy(void *dest, const void *src, size_t n)
6 return (char *)memcpy(dest, src, n) + n;