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