diff --git a/ex5/Makefile b/ex5/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..c720370b51fc358c2911093bff6ed253ad419339 --- /dev/null +++ b/ex5/Makefile @@ -0,0 +1,20 @@ +TARGET = ex5 +LIBS = -lm +CC = gcc +CFLAGS = -g -Wall -Wextra -pedantic -fsanitize=address -fsanitize=leak + +.PHONY: default clean + +default: $(TARGET) + +ex4.o: ex5.c + $(CC) $(CFLAGS) -c $< -o $@ + +run: $(TARGET) + ./$< + +$(TARGET): ex5.o + $(CC) ex5.o $(CFLAGS) $(LIBS) -o $@ + +clean: + rm -f *.o $(TARGET) diff --git a/ex5/ex5.c b/ex5/ex5.c new file mode 100644 index 0000000000000000000000000000000000000000..07a61c08cc6aa8ac5c11b48456e5f0f3d9345b73 --- /dev/null +++ b/ex5/ex5.c @@ -0,0 +1,45 @@ +/** + * @file ex5.c + * @author Florian Burgener + * @brief Exercice 5 + * @version 1.0 + * @date 2022-05-03 + * + * @copyright Copyright (c) 2021 + * + */ + +#include <math.h> +#include <stdbool.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +int main() { + // int32_t values_length = 5; + // double values[values_length]; + + // for (int32_t i = 0; i < values_length; i += 1) { + // double value; + // scanf("%lf", &value); + // values[i] = value; + // } + + // int32_t values_length = 5; + // int32_t values[values_length]; + + // for (int32_t i = 0; i < values_length; i += 1) { + // int32_t value; + // scanf("%d", &value); + // values[i] = value; + // } + + // char a[100]; + // int32_t b; + // scanf("%s %d", a, &b); + // printf("%s %d\n", a, b); + + printf("ex1\n"); + return EXIT_SUCCESS; +}