mirror of
https://github.com/SuperBFG7/ympd
synced 2024-09-28 14:18:40 +00:00
16 lines
250 B
C
16 lines
250 B
C
|
struct node {
|
||
|
char *data;
|
||
|
int value;
|
||
|
struct node *next;
|
||
|
};
|
||
|
|
||
|
struct list {
|
||
|
unsigned length;
|
||
|
struct node *list;
|
||
|
};
|
||
|
|
||
|
|
||
|
int list_init(struct list *);
|
||
|
int list_push(struct list *l, char *data, int value);
|
||
|
int list_free(struct list *l);
|