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