Better HN
top
new
best
ask
show
jobs
Log in
Sign up
brghts
3 karma · joined Jan 4, 2015 (11y ago) · 1 submissions
Submissions
comment 11y ago ·
link
·
parent
Nit: I would suggest not using assert() for checking error return values. Compiling the program with -DNDEBUG disables the check. assert() is for finding bugs in your program. A malloc() call returning NULL is not a bug.