delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/24/13:31:10

Date: Wed, 24 Jan 2001 20:29:47 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: JT Williams <jeffw AT darwin DOT sfbr DOT org>
Message-Id: <9003-Wed24Jan2001202944+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp AT delorie DOT com
In-reply-to: <20010124111235.B16796@kendall.sfbr.org> (message from JT
Williams on Wed, 24 Jan 2001 11:12:35 -0600)
Subject: Re: Advance warning of failure of realloc()
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010124100451 DOT 25819A AT is> <3A6E9FDD DOT C51D05E5 AT acm DOT org> <3405-Wed24Jan2001182735+0200-eliz AT is DOT elta DOT co DOT il> <20010124111235 DOT B16796 AT kendall DOT sfbr DOT org>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Wed, 24 Jan 2001 11:12:35 -0600
> From: JT Williams <jeffw AT darwin DOT sfbr DOT org>
> 
> -: As for how this could be done differently--`realloc' could check if
> -: there's enough free memory immediately following the old block, for
> 
> *Must* the memory block be contiguous?

How else can you grow a buffer without allocating its full size?

How can you return a non-contiguous buffer using just a single
pointer?

- Raw text -


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