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