ti83-sdk/lib83/memcpy.c

10 lines
174 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) {
char * d = dest;
const char * s = src;
while (n--) *d++ = *s++;
return dest;
}