TP 13 exo1: Implement more asked features and test them
[TD_C.git] / TP_13 / exo1 / src / main.c
1 #include <stdlib.h>
2 #include <stdio.h>
3
4 #include "array.h"
5 #include "utils.h"
6 #include "io.h"
7
8 int main() {
9 int* tab = NULL;
10 unsigned tab_size = 0;
11
12 tab = prompt_array(tab, &tab_size);
13
14 printf("%d\n", tab_size);
15
16 display_array(tab, tab_size);
17
18 sort_tab(tab, tab_size, ascending_and_odd);
19
20 display_array(tab, tab_size);
21
22 free_tab(tab);
23 exit(EXIT_SUCCESS);
24 }