OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[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 libc_hidden_proto(memcpy)
11
12 void *mempcpy (void *dstpp, const void *srcpp, size_t len)
13 {
14   memcpy(dstpp, srcpp, len);
15   return (void *)(((char *)dstpp) + len);
16 }
17 libc_hidden_proto(mempcpy)
18 libc_hidden_def(mempcpy)