X-Git-Url: https://rtime.felk.cvut.cz/gitweb/jailhouse.git/blobdiff_plain/4e0ea74420900c7a66d265117b09fddbc3aaa754..f053c948f5b6fe7b9ec5cf6533e177fd42113ba3:/hypervisor/lib.c diff --git a/hypervisor/lib.c b/hypervisor/lib.c index f2a27eb..fc9af7a 100644 --- a/hypervisor/lib.c +++ b/hypervisor/lib.c @@ -32,3 +32,13 @@ int strcmp(const char *s1, const char *s2) } return *(unsigned char *)s1 - *(unsigned char *)s2; } + +void *memcpy(void *dest, const void *src, unsigned long n) +{ + const u8 *s = src; + u8 *d = dest; + + while (n-- > 0) + *d++ = *s++; + return dest; +}