Algorithms_in_C  1.0.0
Set of algorithms implemented in C.
list.h
1 #ifndef __LIST__
2 #define __LIST__
3 
4 #define L List_T
5 typedef struct L *L;
6 
7 struct L
8 {
9  void *val;
10  L next;
11 };
12 
13 extern L List_init(void);
14 extern L List_push(L list, void *val);
15 extern int List_length(L list);
16 extern void **List_toArray(L list);
17 extern L List_append(L list, L tail);
18 extern L List_list(L list, void *val, ...);
19 /* TODO */
20 extern L List_copy(L list);
21 extern int List_pop(L *list);
22 
23 #undef L
24 #endif
L
Definition: list.h:8
min
#define min(a, b)
Definition: kohonen_som_topology.c:37
data
Definition: prime_factoriziation.c:25
node
Definition: binary_search_tree.c:14
Node::data
int data
Definition: threaded_binary_trees.c:28
Node
Definition: threaded_binary_trees.c:27
min_heap
Definition: min_heap.c:5
queue
Definition: bfs.c:6
max_heap
Definition: max_heap.c:5
main
int main(int argc, char **argv)
Definition: c_atoi_str_to_integer.c:70
display
void display(double **A, int N)
Definition: lu_decompose.c:68