Move callback functions into the same file
[TD_C.git] / TP_13 / exo1 / lib / array.h
... / ...
CommitLineData
1#ifndef ARRAY_H
2#define ARRAY_H
3
4#include <stdbool.h>
5
6#include "sort.h"
7
8int* create_tab(int tab[], unsigned tab_size);
9void free_tab(int tab[]);
10int* concat_tab(int tab1[], unsigned tab_size1, int tab2[], unsigned tab_size2);
11int* resize_tab(int tab[], unsigned old_tab_size, unsigned new_tab_size);
12unsigned count_tab_element(int tab[], unsigned tab_size, int element);
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);
15
16#endif /* ARRAY_H */