🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5802

Re: realloc

#5802
From: Larry Jones
Date: Fri, 31 Mar 1989 23:12
19 lines
1323 bytes
In article <cYAd3My00UkaI1vvZr@andrew.cmu.edu>, bader+@andrew.cmu.edu (Miles Bader) writes:
> scjones@sdrc.UUCP (Larry Jones) writes:
> > And when handed a non-NULL pointer and a zero size, it acts like
> > free.  This behavior is required by the draft ANSI Standard.
> 
> Does it return NULL in this case (when it acts like free)?  If so, how
> extra-ordinarily convenient...

It's implementation defined -- the implementation is allowed to
return either a NULL pointer or a pointer to a zero-sized object
(although many people find that concept quite repugnant, that's
the way many existing implementations behave).

----
Larry Jones                         UUCP: uunet!sdrc!scjones
SDRC                                      scjones@sdrc.UU.NET
2000 Eastman Dr.                    BIX:  ltl
Milford, OH  45150                  AT&T: (513) 576-2070
"When all else fails, read the directions."
Technical Details
Message-ID: <686@sdrc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!sdrc!scjones
References: <10170@bloom-beacon.MIT.EDU>, <cYAd3My00UkaI1vvZr@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!sdrc!scjones
From: scjones@sdrc.UUCP (Larry Jones)
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: realloc
Message-ID: <686@sdrc.UUCP>
Date: 31 Mar 89 23:12:32 GMT
References: <10170@bloom-beacon.MIT.EDU>, <cYAd3My00UkaI1vvZr@andrew.cmu.edu>
Organization: Structural Dynamics Research Corp., Cincinnati
Lines: 19