1 /* Copy memory to memory until the specified number of bytes 2 has been copied, return pointer to following byte. 3 Overlap is NOT handled correctly. 4 */ 5 6 /* Ditch the glibc version and just wrap memcpy. */ 7 8 #include <string.h> 9 10 #ifdef __USE_GNU 11 12 # undef mempcpy mempcpy(void * dstpp,const void * srcpp,size_t len)13void *mempcpy (void *dstpp, const void *srcpp, size_t len) 14 { 15 memcpy(dstpp, srcpp, len); 16 return (void *)(((char *)dstpp) + len); 17 } 18 libc_hidden_weak(mempcpy) 19 #endif 20