summaryrefslogtreecommitdiff
path: root/src/01/05/doubly_linked_list.h
blob: b84619ab8fa7b795d4f29aaeea2286b155fd2f7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);