Commit 87ca1906 authored by Chris's avatar Chris
Browse files

doubly ll implementation

parent 9d2163c2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ linked_list_item *create_node(const unsigned long long value) {
    }
    node->value = value;
    node->next = NULL;
    node->prev = NULL;
    return node;
}

@@ -28,6 +29,7 @@ int push(linked_list_item **head, const unsigned long long value) {
        current = current->next;
    }
    current->next = new_node;
    new_node->prev = current;
    return 0;
}