]> 4ch.mooo.com Git - 16.git/blob - src/lib/ll.h
f653825ffce1f8b75a3a255ffd2647b2fb748325
[16.git] / src / lib / ll.h
1 #ifndef __LL_H__\r
2 #define __LL_H__\r
3 #include <stdio.h>\r
4 #include "src/lib/16_tail.h"\r
5 \r
6 typedef struct node\r
7 {\r
8         struct node     *prev;\r
9         rgb_t   d;\r
10         int val;\r
11         struct node     *next;\r
12         word    id;\r
13 } node_t;\r
14 \r
15 void print_list(node_t * head);\r
16 void pushe(node_t * head, int val);\r
17 void pushs(node_t ** head, int val);\r
18 int pop(node_t ** head);\r
19 int remove_last(node_t * head);\r
20 int remove_by_index(node_t ** head, int n);\r
21 \r
22 #endif\r