temp = head; while (temp) { // Do stuff here with temp temp = temp->next; }