diff --git a/Start_Windows/input.c b/Start_Windows/input.c index 081ea34..64ad407 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -9,6 +9,12 @@ static char *singleWordBuffer; // eine Funktion implementieren, die ein einzelnes Wort aus einer Textdatei (words.txt) einliest und als C-String zurückgibt. char *readSingleWord(FILE *file) { + if (file == NULL) + { + return 0; + } + + fgets(singleWordBuffer, MAX_LINE_LEN, file); }