From 3a2185135493d304c8de00f3bd9dc6340152a3f5 Mon Sep 17 00:00:00 2001 From: Celal Kir Date: Sat, 4 Feb 2023 00:23:39 +0100 Subject: [PATCH] initialcommit --- build-project.sh | 2 ++ src/funktion.c | 12 ++++++++++++ src/funktion.h | 6 ++++++ src/main.c | 9 +++++++++ 4 files changed, 29 insertions(+) create mode 100644 src/funktion.c create mode 100644 src/funktion.h create mode 100644 src/main.c diff --git a/build-project.sh b/build-project.sh index 8147ac2..20234e5 100644 --- a/build-project.sh +++ b/build-project.sh @@ -5,5 +5,7 @@ ceedling test:all gcc -o main $(pwd)/src/*.c -lm ./main +read -p "Press [Enter] key to close terminal..." + rm -r build rm main diff --git a/src/funktion.c b/src/funktion.c new file mode 100644 index 0000000..8c929a5 --- /dev/null +++ b/src/funktion.c @@ -0,0 +1,12 @@ +#include +#include +#include +#include +#include"funktion.h" + +float getValue(char c) { + float value; + printf("%c eingeben: ",c); + scanf("%f", &value); + return value; +} \ No newline at end of file diff --git a/src/funktion.h b/src/funktion.h new file mode 100644 index 0000000..061958a --- /dev/null +++ b/src/funktion.h @@ -0,0 +1,6 @@ +#ifndef FUNKTION_H +#define FUNKTION_H + +float getValue(char c); + +#endif diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..80a2127 --- /dev/null +++ b/src/main.c @@ -0,0 +1,9 @@ +#include "funktion.h" +#include +#include +#include +#include + +int main() +{ +} \ No newline at end of file