On Tue, Jul 24, 2007 at 08:41:27AM -0600, Brian Barrett wrote:

> > man malloc tells me this:
> > "If size was equal to 0, either NULL or a pointer suitable to be  
> > passed to free()
> > is returned". So may be we should just return NULL and be done with  
> > it?
> 
> Which is also what POSIX says:
> 
>    http://www.opengroup.org/onlinepubs/009695399/functions/malloc.html
> 
> I vote with gleb -- return NULL, don't set errno, and be done with  

I'd like to second. Just if this is a poll ;)


-- 
Cluster and Metacomputing Working Group
Friedrich-Schiller-Universität Jena, Germany

private: http://adi.thur.de

Reply via email to