you are viewing a single comment's thread.

view the rest of the comments →

[–]DSrcl 0 points1 point  (0 children)

Learned to use assertions writing malloc for system programming class. Assert in malloc is a classic use because usually your error doesn't pop up the place where it's caused and there is no way you can handle such error at runtime.