Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wouldn’t you wrap the allocation with an alloc/free function that does the allocation with whatever extra bytes that are needed? Letting the API users deal with such details seems a recipe for disaster.


Because then you're forcing clients to use malloc rather than their own allocator


Good point




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: