Walks through all the nodes in a list.
ScanList ( const List *1, void *n, <node type>)
This macro lets you easily walk through all the elements in a list from the first to the last.
Example 1: For Example
List *l; DataStruct *d; uint32 i; i = 0; ScanList(l,d,DataStruct) { printf("Node %d is called %s\n",i,d->d.n_Name); i++; }
Macro implemented in list.h V22.
ScanListB
()