Re: Variable-sized lines of text in linked list
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Thu, 28 Feb 2008 20:48:42 -0500
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.
Written in portable standard C, and put in public domain. One of
the demo programs reads complete text files into memory. You will
be amazed how simple. See:
<http://cbfalconer.home.att.net/download/>
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: Variable-sized lines of text in linked list
- From: Richard Heathfield
- Re: Variable-sized lines of text in linked list
- References:
- Variable-sized lines of text in linked list
- From: Scottman
- Variable-sized lines of text in linked list
- Prev by Date: Re: Legal C or bug in gcc
- Next by Date: Re: why this program is wrong ?
- 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
|