Browse Source

Funktion für User input, Anton Lohrey

remotes/origin/Läufer-fertig,-Hendrik-Voß
fdai7492 11 months ago
parent
commit
8cc8450ae7
  1. 13
      src/Input.c
  2. 6
      src/Input.h

13
src/Input.c

@ -0,0 +1,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* getUserInput() {
char *input = NULL;
size_t size = 0;
printf("Ihre Eingabe: ");
getline(&input, &size, stdin);
return input;
}

6
src/Input.h

@ -0,0 +1,6 @@
#ifndef INPUT
#define INPUT
char* getUserInput();
#endif // INPUT
Loading…
Cancel
Save