Re: Why proper error handling should ALWAYS be done
There is no algorithm for that.
Originally Posted by j_g
As I said in my post that had the code, it returns 0 if you ask for more than you have contiguous address space.
Linux will overcommit memory to infinity, but malloc returns 0 when (per process) address space runs out.
Last edited by Tuna-Fish; November 20th, 2007 at 05:31 AM.