I'm trying to reverse something in a linklist but it doesn't seem to be working. Only the first element is printed. I know the link list works because i have a simliar print method which traverses through the linklist and prints everything out. Any ideas?
Code:custNode *previous = NULL; while (current != NULL) { custNode *tmp = current->next; current->next = previous; previous = current; current = tmp; } return previous;