aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/std/memcpy.c
blob: 7e09be71b1396e7847dcdf2248c26c09cfcf7e67 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <string.h>

void* memcpy(void* restrict dstptr, const void* restrict srcptr, size_t size) {
	unsigned char* dst = (unsigned char*) dstptr;
	const unsigned char* src = (const unsigned char*) srcptr;
	for (size_t i=0; i < size; i++)
		dst[i] = src[i];
	return dstptr;
}