matos/core/klibc.c

12 lines
261 B
C
Raw Normal View History

2018-07-20 15:41:58 +02:00
#include "klibc.h"
void *memcpy(void *dst, const void *src, size_t n)
{
char *dstChar = dst;
const char *srcChar = src;
for (size_t i = 0; i < n; i++) {
*(dstChar++) = *(srcChar++);
}
return dst;
}