(no title)
heftig | 11 months ago
void my_thing_free(MyThing *thing) {
fclose(thing->file);
free(thing);
}
assuming an associated "my_thing_new" that only returns a valid pointer when both the allocation and the fopen succeeded.
No comments yet.