diff --git a/src/Input.c b/src/Input.c new file mode 100644 index 0000000..aa44d91 --- /dev/null +++ b/src/Input.c @@ -0,0 +1,13 @@ +#include +#include +#include + +char* getUserInput() { + char *input = NULL; + size_t size = 0; + + printf("Ihre Eingabe: "); + getline(&input, &size, stdin); + + return input; +} diff --git a/src/Input.h b/src/Input.h new file mode 100644 index 0000000..132a3d4 --- /dev/null +++ b/src/Input.h @@ -0,0 +1,6 @@ +#ifndef INPUT +#define INPUT + +char* getUserInput(); + +#endif // INPUT