mbr_asm/klibc.c

12 lines
261 B
C
Raw Normal View History

2018-07-18 15:06:31 +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;
}