3 ms·
Yeah that's ok, but I don't know about arrays, or the "inheritance" pattern: struct Person { char *name; unsigned char age; } stru
by camgunz 8y ago
Yeah that's ok, but I don't know about arrays, or the "inheritance" pattern:
struct Person {
char *name;
unsigned char age;
}
struct Teacher {
struct Person person;
char *subject;
}
This kind of code is pretty common in C, and memcpy doesn't (can't) handle it.
(also hey Ted I'm a huge fan of your work, thanks in particular for threading, holy shit)