From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Advance warning of failure of realloc() Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8kjp6tohorretgu7fadnh7889ub8ihfj4d AT 4ax DOT com> <3A6CDFE1 DOT 4170CCBA AT uol DOT com DOT br> <200101230144 DOT UAA04861 AT envy DOT delorie DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 9 X-Trace: 9+o0by0oZ2v+iz5w1RbJ8ym4eeZvMHbrCmbpxoDi2keMw5+jLELJwFKy+nnvIdjMCh7RKsCtQOoI!umiYMeflAFhxPyhQJ9fOE+WzzAV1kGHgYrU6VFTeAGibVg6MJsQungVJmqOytoUIVaPWqKm/CeRU!oudA X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 23 Jan 2001 04:11:49 GMT Distribution: world Date: Tue, 23 Jan 2001 04:11:49 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 22 Jan 2001 20:44:01 -0500, DJ Delorie wrote: >>>[snip: how do I safely realloc() memory?] >> >> Save your pointer to the old memory block before attempting to realloc. > >DJGPP's code allows this, but I didn't realize you could rely on it. Anyone up for a patch to the realloc() docs?