4 ms·
I personally use libtalloc [0] for my allocations in C. Small footprint, excellent feature set, and it has heap checks, reference counting and all the gizmos yo
by buserror 10y ago
I personally use libtalloc [0] for my allocations in C. Small footprint, excellent feature set, and it has heap checks, reference counting and all the gizmos you'd like in an allocation library. It's actually awesome, I highly recommend it.
For C 'gotcha' cleanups, you can use cppcheck of course (highly recommended) but there's also 'scan-build' the static analyzed from clang.
[0]: https://talloc.samba.org/talloc/doc/html/index.html https://talloc.samba.org/talloc/doc/html/index.html
- RustyRussell 10y agoLove talloc: just taking the opportunity to plug ccan/tal which I wrote after hacking on talloc for a bit: http://ccodearchive.net/info/tal.html http://ccodearchive.net/info/tal.html
- buserror 10y agoCool, why the parallel project, if I may ask? What did you find you needed 'better' than talloc? :-)