[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
standards/62858: malloc(0) not C99 compliant
- Subject: standards/62858: malloc(0) not C99 compliant
- From: des at des.no (Dag-Erling Smørgrav)
- Date: Mon Mar 1 04:24:17 2004
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