If you have something which contains pointers, you should have a destructor function for it, which itself should check if the pointer is not NULL before attempting to free any fields.
We are talking about C. A destructor function in C is a function that gets called when the library gets unloaded. No you shouldn't have a destructor function for it.
1718627440|8 days ago
Arch-TK|3 days ago
I just mean, in the simple English sense, a function which exists to deallocate a structure.
t43562|9 days ago
Arch-TK|3 days ago