09-25-2009 01:16 AM
Shane,
yes, in a doubly-linked-list the previous pointer of the first element and the next pointer of the last element points to NULL.
There is a special case of doubly-linked-list called circular-doubly-linked-list where the previous pointer of the first element points to the last element and the next pointer of the last element points to the first element.
Balze
09-25-2009 04:42 AM
Balze,
thanks. I automagically assumed that the LL would wrap around. Having NULL pointers at either end makes it easier to use IMHO.
Thanks for your help. I have managed to get the first part of communication up and running.
Shane.