mirror of https://github.com/AlexeyAB/darknet.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
426 B
27 lines
426 B
#ifndef LIST_H |
|
#define LIST_H |
|
|
|
typedef struct node{ |
|
void *val; |
|
struct node *next; |
|
struct node *prev; |
|
} node; |
|
|
|
typedef struct list{ |
|
int size; |
|
node *front; |
|
node *back; |
|
} list; |
|
|
|
list *make_list(); |
|
int list_find(list *l, void *val); |
|
|
|
void list_insert(list *, void *); |
|
|
|
void **list_to_array(list *l); |
|
|
|
void free_list(list *l); |
|
void free_list_contents(list *l); |
|
void free_list_contents_kvp(list *l); |
|
|
|
#endif
|
|
|