|
|
|
|
|
by Afforess
2680 days ago
|
|
>"what does malloc return?" This is particularly pernicious, because it's a trick question, too. On linux, malloc always returns, it will never return NULL. Even if you ask for 4 petabytes of memory on a 128mb system, malloc will hand you back a valid pointer for the memory. https://scvalex.net/posts/6/ |
|
(And apparently other conditions: https://stackoverflow.com/questions/2248995/is-there-a-need-... )