Re: Variable-sized lines of text in linked list
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 16:35:10 +0000
CBFalconer said:
<snip>
However you carefully snipped the portion where I pointed out that
this is no different than using the malloc family in any program.
I carefully snipped out the portion where you mentioned malloc because I
didn't see how it was relevant to what I was saying. I *always* remove (or
at least I always try to remember to remove) text from my reply if it is
irrelevant to the point I am making about the article to which it relates.
It is certainly true that, every time you call malloc, you are responsible
for freeing the memory thus allocated. It is for *precisely* this reason
that it's a good idea to reduce the number of calls to malloc to the bare
minimum. The ggets function fails to do this.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- References:
- Variable-sized lines of text in linked list
- From: Scottman
- Re: Variable-sized lines of text in linked list
- From: CBFalconer
- Re: Variable-sized lines of text in linked list
- From: Richard Heathfield
- Re: Variable-sized lines of text in linked list
- From: CBFalconer
- Re: Variable-sized lines of text in linked list
- From: Richard Heathfield
- Re: Variable-sized lines of text in linked list
- From: CBFalconer
- Variable-sized lines of text in linked list
- Prev by Date: Re: Is there stack associated when a executing an inline function?
- Next by Date: Re: Variable-sized lines of text in linked list
- Previous by thread: Re: Variable-sized lines of text in linked list
- Next by thread: Re: Variable-sized lines of text in linked list
- Index(es):
Relevant Pages
|