standards/62858: malloc(0) not C99 compliant

Dag-ErlingSmørgrav des at des.no
Mon Mar 1 04:24:15 PST 2004


Poul-Henning Kamp <phk at FreeBSD.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.no


More information about the freebsd-standards mailing list