Fixed a bug in list pop, again.
[cantaveria.git] / list.h
blob02dc97750172120eaf0235b0d4ecb20fe4e5a253
1 typedef struct list list;
2 struct list {
3 void* item;
4 list* next;
5 };
7 list* empty();
8 void push(list* L, void* item);
9 void* pop(list* L);
10 void append(list* L, void* item);
11 void recycle(list* L);
12 void print_list(list* L, void (*print)(void* item));