calloc()

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Jun 24 00:34:54 AEST 1989


In article <14650 at watdragon.waterloo.edu> dtsteen at dahlia.waterloo.edu writes:
>      block = calloc(0,1);
>What does the ANSI spec (which I don't have) have to say about this?

"If the size of the space requested is zero, the behavior is
implementation-defined; the value returned shall be either a
null pointer or a unique pointer."



More information about the Comp.lang.c mailing list