Xref: utzoo comp.lang.c:35348 comp.unix.programmer:871 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!att!cbnews!res From: res@cbnews.att.com (Robert E. Stampfli) Newsgroups: comp.lang.c,comp.unix.programmer Subject: Re: Need help monitoring malloc() and free() Message-ID: <1991Jan20.185009.18694@cbnews.att.com> Date: 20 Jan 91 18:50:09 GMT References: <1991Jan17.205108.3250@linus.mitre.org> Distribution: na Organization: AT&T Bell Laboratories Lines: 10 >What I was thinking is making a front end to malloc() and free(), so >all calls to malloc() would actually call my routine and my routine >would in turn call the malloc() that lives in libc.a. Have you tried compiling your program with "-Dmalloc=Mymalloc -Dfree=Myfree" on the compile line? Obviously, you leave this off the step that compiles your liaison code -- the actual instance of Mymalloc() and Myfree(). -- Rob Stampfli 614-860-4268 (work) 614-864-9377 (home) kd8wk@n8jyv.oh (ham) stampfli@att.com osu-cis!kd8wk!res