summaryrefslogtreecommitdiff
path: root/libc/string/generic/mempcpy.c
blob: d121967cd74a9f98b040fe3cc323cbe7b160642c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* 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>

void attribute_hidden *__mempcpy (void *dstpp, const void *srcpp, size_t len)
{
  __memcpy(dstpp, srcpp, len);
  return (void *)(((char *)dstpp) + len);
}

strong_alias(__mempcpy,mempcpy)