ti83-sdk/lib83/memcpy.c

10 lines
192 B
C
Raw Normal View History

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;
}