wr
hn
Top
New
Best
Ask
Show
Jobs
Back
b
brghts
Joined 12 years ago
Karma
3
Submissions
1
Member since
Jan 4
View on Hacker News
Recent submissions
Comment · 12 years ago
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.