mempcpy.c 478 B

12345678910111213141516171819
  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. /* Ditch the glibc version and just wrap memcpy. */
  6. #include <string.h>
  7. #undef mempcpy
  8. void attribute_hidden *__libc_mempcpy (void *dstpp, const void *srcpp, size_t len)
  9. {
  10. memcpy(dstpp, srcpp, len);
  11. return (void *)(((char *)dstpp) + len);
  12. }
  13. strong_alias(__libc_mempcpy, __mempcpy)
  14. strong_alias(__mempcpy, mempcpy)