delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/16/03:53:03

Date: Sun, 16 Apr 2000 10:52:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: OiSyN <mailme AT oisyn DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: alternative malloc
In-Reply-To: <955814366.27830.0.pluto.d4ee0fa5@news.demon.nl>
Message-ID: <Pine.SUN.3.91.1000416105208.2482l-100000@is>
MIME-Version: 1.0
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

On Sat, 15 Apr 2000, OiSyN wrote:

> Is there an easy way to replace DJGPP's malloc with your own one?
> With an easy way I mean a way without changing stdlib...

If your program has replacements for malloc, free, and realloc, then
the linker will use them instead of the versions in the library.

But you *must* implement all the 3 functions, since the library
version has them all on a single module.

- Raw text -


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