4 ms·
Correct, but the point is that it is difficult to get malloc to return null on Linux. Why litter your code with checks for de facto impossible scenarios?
by bjourne 1y ago
Correct, but the point is that it is difficult to get malloc to return null on Linux. Why litter your code with checks for de facto impossible scenarios?
- daef 1y agoin systems level programming (the introductory course before operating systems in our university) this was one of the first misconceptions to be eradicated. you cannot trust malloc to return null.
- codedokode 1y agoFirst, Linux has thousands of settings that could affect this, second the library probably works not only on Linux.