3 ms·
"malloc() won't fail" "oh yes it does" "oh no it doesn't" demo of malloc failing "alloca() won't fail!" Stop moving the goalposts. Besides, alloca() tends
by pjc50 11y ago
"malloc() won't fail"
"oh yes it does"
"oh no it doesn't"
demo of malloc failing
"alloca() won't fail!"
Stop moving the goalposts. Besides, alloca() tends to crash your program a lot sooner as stack allocation is usually very limited, especially in a shared-memory multithreading context. Hardly anyone uses alloca().