blob: d7fa79ef5d3aaa3c3c047b8ee4a7f3290b67f9bd [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/* 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
13void *mempcpy (void *dstpp, const void *srcpp, size_t len)
14{
15 memcpy(dstpp, srcpp, len);
16 return (void *)(((char *)dstpp) + len);
17}
18libc_hidden_weak(mempcpy)
19#endif