Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
Loading...
Searching...
No Matches
list.h
1#ifndef __LIST__
2#define __LIST__
3
4#define L List_T
5typedef struct L *L;
6
7struct L
8{
9 void *val;
10 L next;
11};
12
13extern L List_init(void);
14extern L List_push(L list, void *val);
15extern int List_length(L list);
16extern void **List_toArray(L list);
17extern L List_append(L list, L tail);
18extern L List_list(L list, void *val, ...);
19/* TODO */
20extern L List_copy(L list);
21extern int List_pop(L *list);
22
23#undef L
24#endif
Definition: list.h:8
Doubly linked list struct.
Definition: doubly_linked_list.c:24