aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/mlibc/string/memcpy.c
blob: eec798b9f1e1f63f7fa3e4455f9ea1dc5220f10c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <stddef.h>

void *memcpy(void *dest, const void *src, size_t count)
{
	const char *sp = (const char *)src;
	char *dp = (char *)dest;
	for (; count != 0; count--)
		*dp++ = *sp++;
	return dest;
}