Example


Example 4 illustrates how to traverse a list.

Example 1: List traversal.

void DumpList ( const List *theList )
{
    Node *n;

    ScanList(theList,n,Node)
    {
        printf("Node = 0x%lx\n", n);
    }
}