Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!udel!haven!uvaarpa!murdoch!astsun9.astro.Virginia.EDU!gl8f From: gl8f@astsun9.astro.Virginia.EDU (Greg Lindahl) Newsgroups: comp.sys.atari.st Subject: Re: Malloc() in C and the 40-folder bug Message-ID: <1990Mar18.191448.2799@murdoch.acc.Virginia.EDU> Date: 18 Mar 90 19:14:48 GMT References: <8672@chaph.usc.edu> Sender: news@murdoch.acc.Virginia.EDU Reply-To: gl8f@astsun9.astro.Virginia.EDU (Greg Lindahl) Organization: Department of Astronomy, University of Virginia Lines: 16 In article <8672@chaph.usc.edu> jjung@alcor.usc.edu (John Jung) writes: >I'm currently developing an application for the ST in C that uses dynamic >storage of linked lists. As a consequence, I'm Malloc()ing blocks of memory >left and right. Since I don't want to encounter this bug, I'd like to know >if anyone has a solution for me to use? I believe Laser C's malloc() does the "right thing"; you can easily test it by simply malloc()ing several thousand little blocks and see what happens. If you want to see source for malloc() that does the right thing, ftp the source code for dLibs from terminator.cc.umich.edu. dLibs is a complete library, and also contains nice things such as the new ANSI str* functions. Greg Lindahl gl8f@virginia.edu Astrophysicists for Choice.