[PATCH v2 3/4] Say malloc (0) != NULL is now common; resection
Paul Eggert
eggert@cs.ucla.edu
Fri Feb 13 17:08:47 GMT 2026
On 2026-02-12 16:59, Mark Harris wrote:
> Paul Eggert wrote:
>> To clarify this I could add further wording saying something like "There
>> are two possible behaviors, and everybody but IBM AIX does it the GNU way."
> There have been numerous implementations of malloc() that return NULL
> for size == 0, for example DEC OSF/1, and Borland C++ for Windows.
> Even if only considering implementations that are still in use it is
> not credible to claim that there is only one implementation that does
> this
OK, then let's leave the proposed documentation wording alone, as it
does not make that claim.
More information about the Libc-alpha
mailing list