[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

standards/62858: malloc(0) not C99 compliant



Poul-Henning Kamp <phk_(_at_)_FreeBSD_(_dot_)_org> writes:
> This is a deliberate choice.  Handling zero-size pointers correctly
> in malloc(3) would be a rather involved and is currently not high
> on the todolist.  A good patch might change that.

The standard does allow returning NULL, you know.

DES
-- 
Dag-Erling Sm?rgrav - des_(_at_)_des_(_dot_)_no

Visit your host, monkey.org