home *** CD-ROM | disk | FTP | other *** search
- Path: asterix.urc.tue.nl!buex95a
- From: buex95a@asterix.urc.tue.nl (Marcel van Kervinck)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Must I free my linked lists? (GCC)
- Date: 30 Jan 1996 10:18:02 GMT
- Organization: Eindhoven University of Technology, The Netherlands
- Message-ID: <4ekr8q$igs@tuegate.tue.nl>
- References: <4dudic$aif@vixen.cso.uiuc.edu> <4e2mrt$bc6@iss1.neckar-alb.de> <volker.0eqv@vb.franken.de> <4e835q$rej@tuegate.tue.nl> <volker.0et1@vb.franken.de>
- NNTP-Posting-Host: asterix.urc.tue.nl
- X-Newsreader: TIN [version 1.2 PL2]
-
- Volker Barthelmann (volker@vb.franken.de) wrote:
- : Marcel van Kervinck (buex95a@asterix.urc.tue.nl) wrote:
- : : Volker Barthelmann (volker@vb.franken.de) wrote:
- : :
- : : : Probably all Amiga C libraries have a malloc() that frees all memory
- : : : after program termination, but no C compiler is required to do it.
- : :
- : : Wrong. They _are_ required to free the memory allocated by
- : : malloc and it's brothers. K&R II states so.
-
- : I couldn't find this in K&R. Please quote what it says.
-
- : If K&R really says this, it's an error in K&R AFAIK.
-
- I was mistaken with my statement. I didn't expect it to be listed
- under malloc() or free() in K&R btw. I thought exit() mentioned it.
- I just checked it today and it just mentions the flushing and closing
- of files and streams. Not the freeing of memory.
- Apologies for the fuzz...
-
- Marcel
- -- _ _
- _| |_|_|
- |_ |_ Marcel van Kervinck
- |_| buex95a@urc.tue.nl
-