OSDN Git Service

libc/metag: add __kernel_long_t and __kernel_ulong_t
[uclinux-h8/uClibc.git] / libc / string / generic / mempcpy.c
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
13 void *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