www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/22/20:07:51

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
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
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()?

-- 
<O
( \   GNOME vs. KDE: the game!
 X    http://pineight.8m.com/nes.htm

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019