diff --git a/.gitignore b/.gitignore index d18b2db3919629bc63f40a8fef037969d5f6d130..4e2f224b9778362aab5af2402a3f0e37e51b1bc2 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 08b2ed32ff2ce13d6f9043c6ad0dc87fd2e22795..7934e857563f3bba414462f7bd1b5831281cd74a 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 0000000000000000000000000000000000000000..c3b9b5004b6906c0e35eee7fa458786b21d7ad93 --- /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 0000000000000000000000000000000000000000..c839368dc6819bc8746124c8a7d3683961ea13a4 --- /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; +}