Xref: utzoo comp.std.c:1003 comp.lang.c:17395 Path: 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 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."