[prev] [index] [next]

Dynamic Data Structures (cont)

Iterating over an existing linked list NodeT *list

NodeT *p = list;
while (p != NULL) {
	... p->data ...  // do something with the data    
	p = p->next;     // move forward
}