fixed print list
This commit is contained in:
parent
f3d607859c
commit
e22cb17067
@ -465,7 +465,8 @@ void print_list( node *head, bool ft_descending_ascending)
|
||||
node *iterator = NULL;
|
||||
if( ft_descending_ascending) {
|
||||
iterator = head;
|
||||
|
||||
print_node(iterator);
|
||||
iterator = iterator->next;
|
||||
} else {
|
||||
iterator = get_tail( head);
|
||||
while( iterator != NULL) {
|
||||
|
Reference in New Issue
Block a user