summaryrefslogtreecommitdiff
path: root/src/02/03/list.h
blob: 3d5efe1bad37c642080bd80c48e98656d6d29f35 (plain)
1
2
3
4
5
6
7
8
9
10
#include "node.h"

typedef void (*Printer)(void *);
typedef struct node List;

List *list_initialize(void *data);
List *list_get(List *from, int index);
List *list_add(List *head, void *data);
int list_size(List *list);
void list_inspect(List *self, Printer printer);