]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libc/string/generic/mempcpy.c
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / 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