coreboot-kgpe-d16/src/lib/memcpy.c
Stefan Reinauer 9ab216023c fix compiler warnings (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3882 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2009-01-20 21:40:16 +00:00

12 lines
207 B
C

#include <string.h>
void *memcpy(void *vdest, const void *vsrc, size_t bytes)
{
const char *src = vsrc;
char *dest = vdest;
int i;
for (i = 0; i < (int)bytes; i++)
dest[i] = src[i];
return vdest;
}