Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/libgcc/memcpy.c

13 lines
192 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
/* Public domain. */
#include <stddef.h>
void *
memcpy (void *dest, const void *src, size_t len)
{
char *d = dest;
const char *s = src;
while (len--)
*d++ = *s++;
return dest;
}