Obsolete
/
libipc-old
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
libipc-old/pubsub/list.h

24 lines
306 B
C
Raw Normal View History

2016-05-31 23:07:00 +02:00
#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