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;
|
node *iterator = NULL;
|
||||||
if( ft_descending_ascending) {
|
if( ft_descending_ascending) {
|
||||||
iterator = head;
|
iterator = head;
|
||||||
|
print_node(iterator);
|
||||||
|
iterator = iterator->next;
|
||||||
} else {
|
} else {
|
||||||
iterator = get_tail( head);
|
iterator = get_tail( head);
|
||||||
while( iterator != NULL) {
|
while( iterator != NULL) {
|
||||||
|
Reference in New Issue
Block a user