Commit | Line | Data |
---|---|---|
fac749d5 JB |
1 | #ifndef ARRAY_H |
2 | #define ARRAY_H | |
3 | ||
889d5862 JB |
4 | #include <stdbool.h> |
5 | ||
884e9557 JB |
6 | #include "sort.h" |
7 | ||
34f864c6 | 8 | int* create_tab(int tab[], unsigned tab_size); |
e4001676 | 9 | void free_tab(int tab[]); |
475ee86d | 10 | int* concat_tab(int tab1[], unsigned tab_size1, int tab2[], unsigned tab_size2); |
59941dc1 | 11 | int* resize_tab(int tab[], unsigned old_tab_size, unsigned new_tab_size); |
889d5862 | 12 | unsigned count_tab_element(int tab[], unsigned tab_size, int element); |
210f7f05 JB |
13 | unsigned count_tab_criteria(int tab[], unsigned tab_size, c_criteria_cb c_criteria); |
14 | void sort_tab(int tab[], unsigned tab_size, s_criteria_cb sort_criteria); | |
33b9c646 | 15 | |
fac749d5 | 16 | #endif /* ARRAY_H */ |