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

Your C library does not check malloc returns and also malloc and free everywhere inside library functions are not the best way to write a C library.


As for malloc/free, I'm guessing the recommendation is to allow the user to pass their own allocator on library initialization?

Non-checked malloc returns - ouch, I count 12 (out of 56) without a check. Thanks for pointing this out.




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

Search: