10 lines
192 B
C
10 lines
192 B
C
|
|
#include <string.h>
|
|
|
|
void * memcpy(void * dest, const void * src, size_t n) {
|
|
register char * d = dest;
|
|
register const char * s = src;
|
|
while (n--) *d++ = *s++;
|
|
return dest;
|
|
}
|