delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/25/03:12:06

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Dynamic Arrays
Date: Fri, 24 Jan 1997 19:49:55 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 19
Message-ID: <32E982E3.19D4@cs.com>
References: <01bc072e$33eb9b20$ee038cd0 AT wahander> <32E453A2 DOT FA3 AT cs DOT com> <QVUYf$A8PJ6yEwT5 AT flag DOT demon DOT co DOT uk>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp107.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Moo-Juice wrote:
> 
> >If you want to make the entire list dynamic, i.e.; its size can change
> >during runtime, then you need a much more complex algorithm, but again
> >it's something that's in every C textbook I've ever seen.  If you really
> >still need help, email me in private and I'll send you more samples.
> 
> Surely simply using a realloc will suffice?

Possibly, but I'm referring to a dynamic linked list, with a head and
next pointers and the whole schmear.  It's a standard programming
technique, but explaining it to a newbie takes a lot of space.  :)

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |        fighteer AT cs DOT com          |
| Proud owner of what might one   |   http://www.cs.com/fighteer    |
| day be a spectacular MUD...     | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019