Hacker News new | ask | show | jobs
by hedora 2927 days 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”.