Lukc is an idiot.
This commit is contained in:
parent
498b4857e2
commit
32a9992c60
23
pubsub/list.h
Normal file
23
pubsub/list.h
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
#ifndef LIST_H
|
||||
#define LIST_H
|
||||
|
||||
struct link {
|
||||
struct link* next;
|
||||
char value[];
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
struct link* head;
|
||||
struct link* tail;
|
||||
size_t element_size;
|
||||
size_t length;
|
||||
} List;
|
||||
|
||||
List* list_new(size_t);
|
||||
void* list_append(List*);
|
||||
void list_remove(List*, size_t);
|
||||
void list_free(List*);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user