From: Eric Backus Subject: Re: malloc/free broken?? To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp) Date: Sat, 8 May 93 12:47:24 PDT Mailer: Elm [revision: 66.25] > I've never seen a C compiler with a library which let you select the > malloc algorithm which best fit your task. Sometimes I'd like to > add my own routines, but you never know whether some other library > routines depend on the details of the memory allocator. The malloc() function is not reserved or defined by ANSI C. In theory, therefore, an ANSI C compiler must allow you to define a malloc() function (perhaps even one which has nothing to do with memory allocation), without breaking any ANSI C functions. I guess non-ANSI C functions could be affected, though. In practice, on a unix machine I have supplied alternate versions of malloc() to a program, and everything worked fine. I haven't tried with DJGPP, but I bet it would work fine. -- Eric Backus ericb AT lsid DOT hp DOT com (206) 335-2495