[LCP]linked list question

Mike & Penny Novack stepbystepfarm at shaysnet.com
Wed Apr 3 04:37:04 UTC 2002


Joachim,

    Look at Vincent's comment but more abstractly. What you want to
model isn't a list per se but a queue (new elements added to the tail
but processing will be from the front).

    Thus you might have used structures with TWO pointers. One would be
the pointer to "next", the other (if/f that node is the head of a queue)
point to the current tail of that queue (ie: initially to itself) or
NULL if not the head of a queue.

Mike






More information about the linuxCprogramming mailing list