Move callback functions into the same file
[TD_C.git] / TP_13 / exo1 / lib / array.h
CommitLineData
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 8int* create_tab(int tab[], unsigned tab_size);
e4001676 9void free_tab(int tab[]);
475ee86d 10int* concat_tab(int tab1[], unsigned tab_size1, int tab2[], unsigned tab_size2);
59941dc1 11int* resize_tab(int tab[], unsigned old_tab_size, unsigned new_tab_size);
889d5862 12unsigned count_tab_element(int tab[], unsigned tab_size, int element);
210f7f05
JB
13unsigned count_tab_criteria(int tab[], unsigned tab_size, c_criteria_cb c_criteria);
14void sort_tab(int tab[], unsigned tab_size, s_criteria_cb sort_criteria);
33b9c646 15
fac749d5 16#endif /* ARRAY_H */