17 lines
323 B
C
17 lines
323 B
C
#ifndef _LIST_H_
|
|
#define _LIST_H_
|
|
|
|
|
|
typedef struct list_t {
|
|
void *data;
|
|
struct list_t *next;
|
|
} list_t;
|
|
|
|
list_t *list_create(void *data);
|
|
list_t *list_append(list_t *head, void *data);
|
|
void list_print(list_t *head);
|
|
void list_destroy(list_t *head);
|
|
void list_delete(list_t *head, void *data);
|
|
|
|
|
|
#endif /* _LIST_H_ */ |