void Section_copy (Section *self, Section *other) { self->bytes = ByteArray_clone(other->bytes); self->reloc = intArray_clone(other->reloc); self->module_start = intArray_clone(other->module_start); }
char* String_clone(char* src) { size_t len = 1 + strlen(src); return (char*)ByteArray_clone(src, len); }