blob: e4e9c76421ffed1dd0d427b59e032364b41851d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include <stddef.h>
void *memcpy(void *dest, const void *src, size_t count)
{
const char *sp = (const char *) src;
char *dp = (char *) dest;
for (; count != 0; count--) *dp++ = *sp++;
return dest;
}
|