Xref: utzoo comp.std.c:973 comp.lang.c:17325 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!blake!ogccse!littlei!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.std.c,comp.lang.c Subject: Re: realloc Message-ID: <1347@auspex.auspex.com> Date: 31 Mar 89 07:18:28 GMT References: <10170@bloom-beacon.MIT.EDU> <1989Mar29.205433.3958@utzoo.uucp> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 12 >Unfortunately, this is (at present) not a portable assumption, because >neither V6 nor V7 Unix -- the Unixes from which essentially all others >are descended, and which included the first widely-known C compilers -- >did this. It was invented later. There are probably a fair number >of old systems that haven't caught up with it. In fact, I checked the S5R3 "malloc"s - both the one in "libc", which is, as I remember, little changed from the V7 one, and the one in "-lmalloc" - and they most definitely do not make the check for NULL, so there are probably a fair number of *new* systems that haven't caught up with it.