Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!mcshh!abqhh!drdhh!bjoern From: bjoern@drdhh.hanse.de (Bjoern Kriews) Newsgroups: comp.std.c Subject: Re: realloc Message-ID: <2942.04.91@drdhh.hanse.de> Date: 26 Apr 91 10:27:22 GMT References: <91112.102011LSC@SLACVM.SLAC.STANFORD.EDU> Organization: Digital Island Lines: 18 From article <91112.102011LSC@SLACVM.SLAC.STANFORD.EDU>, by LSC@SLACVM.SLAC.STANFORD.EDU: > "If the space cannot be allocated, the object pointed to by ptr is unchang > unchanged." > > Does this mean that one has no means of checking the success or failure > of the operation? Does one have to resort to errno? "If it cannot reallocate the memory, it returns NULL" Hmm, what to say, he DID RTFM :-) Greetings, Bjoern --- bjoern@drdhh.hanse.de = Bjoern Kriews / Stormsweg 6 / 2000 Hamburg 76 / FRG "gaaga mahwe Bjoern urgl ufzae Turbo-C bnub" (J. Willamowius)