What does malloc(0) return?

Steve Emmerson steve at unidata.ucar.edu
Sat Jun 1 03:25:52 AEST 1991


Greetings,

The subject-line says it all and my K&R2 is silent on the matter.
Is the answer NULL, non-NULL (but don't dereference), undefined,
or implementation-defined?

Thanks in advance.

Steve Emmerson        steve at unidata.ucar.edu        ...!ncar!unidata!steve



More information about the Comp.std.c mailing list