Re: [Code] Problems with Linked List

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/25/97


On Sun, 26 Oct 1997, - Pure Krome - wrote:

>Now the problem. I can't seem to removed a structure FROM the linked
>list! My alg sucks big time, so i'm wondering if someone could lead me
>in the right direction.

Try the REMOVE_FROM_LIST macro, as for adding, it's not much harder and
there isn't a macro because often you may want it sorted or in another
specific order.  Otherwise, adding to the front of the list is the easiest
and fastest unless you keep a tail pointer.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST