Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
woahhvicky
· 9y ago · 0 comments
This is implemented in terms of calloc()/free(). Is this a joke? Or some kind of post-modern art? Genuinely curious, the use cases aren't clear.
Comments
[–]
kabdib
9y ago
Maybe as a debugging cover for memory (but then you'd expect functionality for heap checking, block tracking and leak detection, etc). Forbidding a null pointer on free is a breaking change and a little naive. It's not terribly useful.