1 2 3 4 5 6 7
#include <string.h> void *mempcpy(void *dest, void *src, size_t n) { memcpy(dest, src, n); return (char *)dest + n; }