1 /* list.h -- list headers */
7 #define L_NO_NEXT_ELEMENT -2
8 #define L_NO_SUCH_ELEMENT -3
9 #define L_INVALID_ELEMENT -4
10 #define L_EMPTY_LIST -5
12 typedef struct s_list_element {
13 struct s_list_element *next;
19 typedef struct s_list {
20 t_list_element *start;
21 t_list_element *current;
24 /* function prototypes */
25 int list_init(t_list *list);