realloc

Tim_CDC_Roberts at cup.portal.com Tim_CDC_Roberts at cup.portal.com
Thu Mar 30 06:12:54 AEST 1989


In <10170 at bloom-beacon.MIT.EDU>, scs at adam.pika.mit.edu (Steve Summit) writes:

> It is an apparently well-
> kept secret that realloc is supposed to behave gracefully at
> a slightly special-cased boundary point: when handed a NULL
> pointer and a nonzero size, it acts essentially as a malloc.

I am unable to locate any justification for this statement.  Is this
behavior actually defined anywhere, or is it just your wish that realloc
behave this way?

Tim_CDC_Roberts at cup.portal.com                | Control Data...
...!sun!portal!cup.portal.com!tim_cdc_roberts |   ...or it will control you.



More information about the Comp.std.c mailing list