Article View: comp.std.c
Article #5784Re: realloc
From: Tim_CDC_Roberts
Date: Wed, 29 Mar 1989 20:12
Date: Wed, 29 Mar 1989 20:12
13 lines
994 bytes
994 bytes
In <10170@bloom-beacon.MIT.EDU>, scs@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@cup.portal.com | Control Data... ...!sun!portal!cup.portal.com!tim_cdc_roberts | ...or it will control you.
Technical Details
Message-ID:
<16401@cup.portal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!portal!cup.portal.com!Tim_CDC_RobertsReferences:
<10170@bloom-beacon.MIT.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!portal!cup.portal.com!Tim_CDC_Roberts From: Tim_CDC_Roberts@cup.portal.com Newsgroups: comp.std.c,comp.lang.c Subject: Re: realloc Message-ID: <16401@cup.portal.com> Date: 29 Mar 89 20:12:54 GMT References: <10170@bloom-beacon.MIT.EDU> Distribution: na Organization: The Portal System (TM) Lines: 13