void memcpy(void *d, const void *s, size_t c) {
char *a = (char *)d;
const char *b = (const char *)s;
while (c--) *a++ = *b++;
}