1 /*
2  *  Copyright (C) 1991, 1992  Linus Torvalds
3  */
4 
5 #include <xen/string.h>
6 
7 /**
8  * memcpy - Copy one area of memory to another
9  * @dest: Where to copy to
10  * @src: Where to copy from
11  * @n: The size of the area.
12  *
13  * You should not use this function to access IO space, use memcpy_toio()
14  * or memcpy_fromio() instead.
15  */
16 void *(memcpy)(void *dest, const void *src, size_t n)
17 {
18 	char *tmp = (char *) dest, *s = (char *) src;
19 
20 	while (n--)
21 		*tmp++ = *s++;
22 
23 	return dest;
24 }
25 
26 /*
27  * Local variables:
28  * mode: C
29  * c-file-style: "BSD"
30  * c-basic-offset: 8
31  * tab-width: 8
32  * indent-tabs-mode: t
33  * End:
34  */
35