2023-10-08 12:52:17 +00:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
void * memcpy(void * dest, const void * src, size_t n) {
|
2023-10-08 13:05:03 +00:00
|
|
|
register char * d = dest;
|
|
|
|
register const char * s = src;
|
2023-10-08 12:52:17 +00:00
|
|
|
while (n--) *d++ = *s++;
|
|
|
|
return dest;
|
|
|
|
}
|