struct NODE{ struct NODE Succ; struct NODE Prev; }; struct LIST{ struct NODE *Head; struct NODE *Tail; int count; }; struct LIST *List; struct NODE *N; ...... for(N = List->Head;N;N = N->Succ) { ...... }
Hi, That's strange; on AmigaOS it is basic feature of doubly linked lists. Maybe for workaround, you should create temporal pointer, something like:
struct NODE *N, *tn; ...... for(N = List->Head;N;tn = N->Succ, N=tn)