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




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: