summaryrefslogtreecommitdiff
path: root/src/01/05/doubly_linked_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/01/05/doubly_linked_list.h')
-rw-r--r--src/01/05/doubly_linked_list.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/01/05/doubly_linked_list.h b/src/01/05/doubly_linked_list.h
new file mode 100644
index 0000000..b84619a
--- /dev/null
+++ b/src/01/05/doubly_linked_list.h
@@ -0,0 +1,13 @@
+struct node {
+ int data;
+ struct node *next;
+ struct node *prev;
+};
+
+typedef struct node Node;
+
+Node *initialize(int data);
+Node *add(Node *head, int data);
+Node *get(Node *from, int index);
+Node *reverse(Node *head);
+void inspect(Node *node);