> (a) malloc() never returns NULL. It always returns a valid address, even though your system may have out of memory.
This is only true on Linux, for example, FreeBSD by default has partial overcommit and WILL start returning null after overcommitting some percentage of memory (I think 30% or so by default)