angefangen input neu zu schreiben

This commit is contained in:
Jonas Hofmann 2025-10-31 01:09:29 +01:00
parent 543ba65b7e
commit 63cafdbc0c

View File

@ -2,6 +2,22 @@
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
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 #define MAX_BUFFER_LEN 256
// TODO? // TODO?
@ -36,3 +52,5 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
return count; return count;
} }
*/