summaryrefslogtreecommitdiff
path: root/libc/string/generic/mempcpy.c
blob: 46a2eaf92cd9829c09f1458a244d0b832fb0e992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copy memory to memory until the specified number of bytes
   has been copied, return pointer to following byte.
   Overlap is NOT handled correctly.
*/

/* Ditch the glibc version and just wrap memcpy. */

#include <string.h>

#undef mempcpy
#undef __mempcpy

void *__mempcpy (void *dstpp, const void *srcpp, size_t len)
{
  memcpy(dstpp, srcpp, len);
  return (void *)(((char *)dstpp) + len);
}
weak_alias (__mempcpy, mempcpy)