4 ms·
I’d argue these APIs could be further minimized by using a struct with a void * and a size_t in it, along with bounds checking accessors. This would eliminate
by hedora 8y ago
I’d argue these APIs could be further minimized by using a struct with a void * and a size_t in it, along with bounds checking accessors.
This would eliminate most of the ugliness in the post-allocation calls, allow for the deletion of most error checking code in each library, and would harden BMP parsing “for free”.