home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.st.tech
- Path: sparky!uunet!math.fu-berlin.de!freia.sax.de!hohmuth
- From: hohmuth@freia.sax.de (Michael Hohmuth)
- Subject: Re: Malloc (Was: Sending objc_draw to a buffer)
- Message-ID: <NQM0FPN@math.fu-berlin.de>
- Sender: news@math.fu-berlin.de (Math Department)
- Reply-To: hohmuth@freia.inf.tu-dresden.de
- Organization: Dept. of Computer Science, TU Dresden, Germany
- References: <2b3de6cf@p15.f202.n281.z2.fidonet> <1993Jan3.035343.15539@netcom.com> <stigj.22.726591656@dhhalden.no>
- Date: Sat, 9 Jan 1993 22:34:04 GMT
- Lines: 20
-
- In article <stigj.22.726591656@dhhalden.no>, stigj@dhhalden.no (STIG JORGENSEN) writes:
-
- > >Most libraries' malloc() functions will handle everything automatically,
- > >allocating memory in large chunks (4K or 8K or even 32K) from the OS
- > >and then splitting those chunks up as necessary. See for example the
- > >MiNT or GNU C library malloc()/sbrk() code. All the programmer has to
- > >remember is to use the standard C malloc()/free() functions instead
- > >of the Atari specific Malloc()/Mfree() functions.
-
- > I was just wondering if Pure C has this built in in its library. I am
- > writing a little program that checks if there are any duplicates on the
- > harddisk. Here I use a linked list and make a Malloc() call for every member
- > of the list. There hasn't been any proglems yet. Do you know if Pure Chas
- > this built in?
-
- Yes, it has, and you really should use it (malloc()/free()) in this case.
-
- Michael
- --
- Internet: hohmuth@freia.inf.tu-dresden.de
-