summaryrefslogtreecommitdiff
path: root/src/lib/memcpy.c
blob: ad8e8bd3f06f22d9c6e8cc33ac847818eb0ba848 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <string.h>
void *memcpy(void *__dest, __const void *__src, size_t __n)
{
	int i;
	char *d = (char *) __dest, *s = (char *) __src;

	for (i = 0; i < __n; i++)
		d[i] = s[i];

	return __dest;
}