Re:In C, how do you know if the dynamic allocation succeeded?
by andi999 on Wednesday November 17, 2021 @02:34AM
(#29250123)
But don't you need to check the return value of malloc to then reliable crash/terminate the program? It is like if your car runs out of gas you need to stop, but you don't abandon the steering wheel at high speed and hope for the best.
[ Parent
| on HN ]
There are no comments on this comment yet.