From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Advance warning of failure of realloc() Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <8kjp6tohorretgu7fadnh7889ub8ihfj4d@4ax.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: 11 X-Trace: /wsFG3PrgdDZcEPVePuaiJNn36VN+3a07S2i7Bns9PQiz21/VovhCj1tOR+9IlNUSiibaYy0mVxp!RDErx1zRxOTYJulOJqI6ITTODiKGPL4citWoJV90wmfACQgcE/7b2CUcWBs4YTyyGMv+v1q8xHqU!OeXUng== 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 00:19:58 GMT Distribution: world Date: Tue, 23 Jan 2001 00:19:58 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com To expand an allocated memory block, I should use realloc(). But if realloc() fails, I lose the contents of the block, correct? How can I prevent irretrievable data loss when calling realloc()? --