Re: Variable-sized lines of text in linked list
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 07:45:30 +0000
CBFalconer said:
Scottman wrote:
I am trying to read a text file into memory without any knowledge of
how long each line will be. I am looking to store each line in a
linked list structure, however, I am unsure of how to dynamically
allocate space for each line.
Just get the (short and simple) function ggets(), in ggets.zip.
....and be aware of its problems. Chuck, if you're going to keep on pimping
this function, shouldn't you at least warn people of its shortcomings?
--
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
.
- Follow-Ups:
- Re: Variable-sized lines of text in linked list
- From: CBFalconer
- Re: Variable-sized lines of text in linked list
- References:
- Variable-sized lines of text in linked list
- From: Scottman
- Re: Variable-sized lines of text in linked list
- From: CBFalconer
- Variable-sized lines of text in linked list
- Prev by Date: Re: Legal C or bug in gcc
- Next by Date: Re: Is there stack associated when a executing an inline function?
- 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
|