2 ms·
If malloc fails for trying to allocate a few miserable bytes I would claim the game is over. Why would he need a fallback strategy, anyway? The program is tiny
by fsloth 12y ago
If malloc fails for trying to allocate a few miserable bytes I would claim the game is over. Why would he need a fallback strategy, anyway? The program is tiny and really, really doesn't do anything important.
Matters of taste I suppose, but I've always felt that for tutorial and proof of concept code it's better to skip unnecessry details.
Not every line of code lives in a production environment...