From 42a1ab8168c96ae8ce9d3c67aca5f1028f6d1463 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 26 Oct 2026 15:07:17 +0100 Subject: [PATCH] Input Versuch1 --- Startcode/input.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Startcode/input.c b/Startcode/input.c index ed77805..ce0bd00 100644 --- a/Startcode/input.c +++ b/Startcode/input.c @@ -9,4 +9,11 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) { + + unsigned int wordCount = 0; + while(fgets(words[wordCount],MAX_WORD_LEN,file) != NULL){ + wordCount++; + } + + } \ No newline at end of file