From 4a0a8266bda062ccdc2df585063c14adde2df587 Mon Sep 17 00:00:00 2001
From: "dario.genga" <dario.genga@etu.hesge.ch>
Date: Mon, 2 May 2022 13:22:07 +0200
Subject: [PATCH] Update skeleton

---
 .gitignore   |  1 +
 ex4/ex4.c    |  2 +-
 ex5/Makefile | 10 ++++++++++
 ex5/ex5.c    | 11 +++++++++++
 4 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 ex5/Makefile
 create mode 100644 ex5/ex5.c

diff --git a/.gitignore b/.gitignore
index d18b2db..4e2f224 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ ex1/ex1
 ex2/ex2
 ex3/ex3
 ex4/ex4
+ex5/ex5
diff --git a/ex4/ex4.c b/ex4/ex4.c
index 08b2ed3..7934e85 100644
--- a/ex4/ex4.c
+++ b/ex4/ex4.c
@@ -1,6 +1,6 @@
 /* Author : Dario GENGA
  * Date : 25.01.2022
- * Description : Contrôle continue 4 - Exercice 4
+ * Description : Contrôle continue 3 - Exercice 4
  */
 
 #include <stdio.h>
diff --git a/ex5/Makefile b/ex5/Makefile
new file mode 100644
index 0000000..c3b9b50
--- /dev/null
+++ b/ex5/Makefile
@@ -0,0 +1,10 @@
+LIB=-lm
+CC=gcc -Wall -Wextra -pedantic -g
+
+ex4: ex5.o
+	$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
+
+ex4.o: ex5.c
+	$(CC) -c $< $(LIB)
+clean:
+	rm -f *.o ex5
diff --git a/ex5/ex5.c b/ex5/ex5.c
new file mode 100644
index 0000000..c839368
--- /dev/null
+++ b/ex5/ex5.c
@@ -0,0 +1,11 @@
+/* Author : Dario GENGA
+ * Date : 25.01.2022
+ * Description : Contrôle continue 3 - Exercice 5
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+int main() {
+    return EXIT_SUCCESS;
+}
-- 
GitLab