home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1808 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1008 b   |  26 lines

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