From: Waldemar Schultz Newsgroups: comp.os.msdos.djgpp Subject: Re: alternative malloc Date: Mon, 17 Apr 2000 10:38:50 +0200 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Lines: 18 Message-ID: <38FACD9A.7C2328B7@ma.tum.de> References: NNTP-Posting-Host: pcritter10.mathematik.tu-muenchen.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: wsc10.lrz-muenchen.de 955960739 23527 131.159.69.74 (17 Apr 2000 08:38:59 GMT) X-Complaints-To: news AT lrz-muenchen DOT de NNTP-Posting-Date: 17 Apr 2000 08:38:59 GMT X-Mailer: Mozilla 4.7 [de] (Win98; I) X-Accept-Language: de,en,en-US To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii schrieb: > > 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. and what about 'strdup' (? etc.) -- Gruss Waldemar Schultz. Technische Universität München, Zentrum Mathematik M1, D 80290 München Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228