From 16ab4a59ab7a270cbb106a23d1625462ba41e240 Mon Sep 17 00:00:00 2001 From: Harun Faizi Date: Sun, 2 Nov 2025 15:50:03 +0100 Subject: [PATCH] readwords() korrigiert und getestet --- input.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/input.c b/input.c index fc62d00..ad4907b 100644 --- a/input.c +++ b/input.c @@ -42,12 +42,6 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) strncpy(words[wordCount], token, MAX_WORD_LEN -1); words[wordCount][MAX_WORD_LEN -1] = '\0'; - - words[wordCount][end] = '\0'; - end--; - } - - wordCount++; token = strtok(NULL, ",;\n"); }