home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: newsfeed.ed.ac.uk!hwcee!ceeekj
- From: ceeekj@cee.hw.ac.uk (Erik Kotlar Johannessen)
- Subject: Re: Must I free my linked lists? (GCC)
- Message-ID: <DLnELH.CKB@cee.hw.ac.uk>
- Sender: news@cee.hw.ac.uk (News Administrator)
- Organization: Dept of Computing and Electrical Engineering, Heriot-Watt University
- X-Newsreader: TIN [version 1.2 PL2]
- References: <4dudic$aif@vixen.cso.uiuc.edu> <4e0djj$mnh@vixen.cso.uiuc.edu>
- Date: Tue, 23 Jan 1996 19:10:28 GMT
-
- howard daniel joseph (djhoward@ux4.cso.uiuc.edu) wrote:
- : Now, what's the difference with AllocMem() from malloc()
-
- AllocMem() is an exec.library call (which does not keep track of
- the memory allocated), while malloc() is part of the c-library
- provided by the compiler. At least for gcc (ixemul and libnix)
- malloc() will keep track of the memory you have allocated,
- this is probably true for other c-compilers on the Amiga
- as well.
-
- -Erik
- --
- Erik Johannessen - ceeekj@cee.hw.ac.uk
- http://www.cee.hw.ac.uk./~ceeekj/
-