diff options
Diffstat (limited to 'linkedlist/list.h')
-rw-r--r-- | linkedlist/list.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linkedlist/list.h b/linkedlist/list.h new file mode 100644 index 0000000..db9162b --- /dev/null +++ b/linkedlist/list.h @@ -0,0 +1,16 @@ +#include <stdio.h> +#include <stdlib.h> + +struct list +{ + struct list *next; + int data; +}; + +void list_init(struct list** _listroot); + +void list_add(int _data, struct list** _listroot); + +int list_popFront(struct list** _listroot); + +int list_get(int _index, struct list** _listroot); |