TP 13 exo1: Implement more asked features and test them
[TD_C.git] / TP_13 / exo1 / src / main.c
index 06f5f8d66140d669cb3a97bedd47405c4593e2f5..ea4abc39e67b739c04fcba45a5f142a0f2a31491 100644 (file)
@@ -1,7 +1,24 @@
+#include <stdlib.h>
 #include <stdio.h>
 
+#include "array.h"
+#include "utils.h"
+#include "io.h"
+
 int main() {
-    printf("Hello world\n");
+    int* tab = NULL;
+    unsigned tab_size = 0;
+
+    tab = prompt_array(tab, &tab_size);
+
+    printf("%d\n", tab_size);
+
+    display_array(tab, tab_size);
+
+    sort_tab(tab, tab_size, ascending_and_odd);
+
+    display_array(tab, tab_size);
 
-    return 0;
+    free_tab(tab);
+    exit(EXIT_SUCCESS);
 }