www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/24/09:24:09

Date: Mon, 24 May 1999 16:21:51 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Burton Radons <loth AT cow-net DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Is realloced memory copied when necessary?
In-Reply-To: <374988d5.62603017@news.cow-net.com>
Message-ID: <Pine.SUN.3.91.990524161942.7396G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 23 May 1999, Burton Radons wrote:

> reallocing to new memory implies that the previous memory has been
> free'd.

Before you post such assertions, please check whether it is correct.  It 
isn't.  DJGPP's version of realloc only relocates the memory if 
necessary.  The sources are freely available, so it is very simple to 
look there.

- Raw text -


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