summaryrefslogtreecommitdiff
path: root/list.h
blob: ffa323d89be16fe82587c5c15d28e658a2ff3425 (plain)
1
2
3
4
5
6
7
8
9
10
11
struct item
{
    void *data;
    struct item *prev;
    struct item *next;
};

void movetohead(struct item **mainlist, struct item *item);
struct item *additem(struct item **mainlist);
void delitem(struct item **mainlist, struct item *item);
void listitems(struct item *mainlist);