From 63cafdbc0c7ad57d54011af02b03dad8767b2d6a Mon Sep 17 00:00:00 2001 From: Hofmann Jonas Date: Fri, 31 Oct 2025 01:09:29 +0100 Subject: [PATCH] angefangen input neu zu schreiben --- Start_Windows/input.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Start_Windows/input.c b/Start_Windows/input.c index 23fe982..081ea34 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -2,6 +2,22 @@ #include #include +static char *singleWordBuffer; + + +// TODO: +// eine Funktion implementieren, die ein einzelnes Wort aus einer Textdatei (words.txt) einliest und als C-String zurückgibt. +char *readSingleWord(FILE *file) +{ + fgets(singleWordBuffer, MAX_LINE_LEN, file); + +} + + +// Read words from file and store in 'words' array + + +/* #define MAX_BUFFER_LEN 256 // TODO? @@ -36,3 +52,5 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) return count; } +*/ +