EMILE/libunix/memcpy.c

18 lines
319 B
C
Raw Normal View History

2005-11-12 21:30:19 +00:00
/*
*
* (c) 2004,2005 Laurent Vivier <Laurent@lvivier.info>
2005-11-12 21:30:19 +00:00
*
*/
2005-11-08 02:04:54 +00:00
#include <sys/types.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;
}