🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5865

Re: realloc

#5865
From: Gordon Cross
Date: Mon, 03 Apr 1989 14:36
14 lines
1114 bytes
In article <9122@alice.UUCP> andrew@alice.UUCP (Andrew Hume) writes:
}
}gregg townsend reminds us of the pANS ``feature'' that malloc(0) returns NULL.
}can anyone provide the (or any) justification of this pointless stupid
}definition?

Yes, a pointer to something of zero size takes up NO space!!!  You would be
able to increase this size later with the (ANSI) realloc...  (ain't life great)

-- 

Gordon Cross             UUCP:      uunet!ingr!crossgl     "all opinions are
111 Westminister Way     INTERNET:  crossgl@ingr.com        mine and not those
Madison, AL 35758        MA BELL:   (205) 772-7842          of my employer."
Technical Details
Message-ID: <4800@ingr.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!ingr!crossgl
References: <10170@bloom-beacon.MIT.EDU> <10032@ihlpb.ATT.COM> <9974@megaron.arizona.edu> <9122@alice.UUCP>

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!ingr!crossgl
From: crossgl@ingr.com (Gordon Cross)
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: realloc
Message-ID: <4800@ingr.com>
Date: 3 Apr 89 14:36:04 GMT
References: <10170@bloom-beacon.MIT.EDU> <10032@ihlpb.ATT.COM> <9974@megaron.arizona.edu> <9122@alice.UUCP>
Reply-To: crossgl@ingr.UUCP (Gordon Cross)
Organization: Intergraph Corp. Huntsville, AL
Lines: 14