ref: eba17d80d42e07d4eb9176c66d1bbb3ee39e8d81
dir: /libc/src/memcpy.c/
/* See LICENSE file for copyright and license details. */
#include <string.h>
#undef memcpy
void *
memcpy(void * restrict dst, const void * restrict src, size_t n)
{
char *s1 = dst;
const char *s2 = src;
while (n-- > 0)
*s1++ = *s2++;
return dst;
}