Work on music, midi, and seq interfaces.
[cantaveria.git] / list.h
blobd00556e87a14d58c66b661e7eda52f00d270cb2f
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));
13 int length(list* L);