fxlibc/src/libc/string/memcpy.c

14 lines
264 B
C

#include <string.h>
#include <stdint.h>
#ifndef __SUPPORT_ARCH_SH
void *memcpy(void *dest, const void *src, size_t count)
{
for (size_t i = 0; i < count; i = i + 1)
((uint8_t *) dest)[i] = ((uint8_t *) src)[i];
return (dest);
}
#endif /*__SUPPORT_ARCH_SH*/