From 849d48aafa465c18558aaf513ca1c44b820edbea Mon Sep 17 00:00:00 2001 From: Andreas Binner Date: Mon, 26 Oct 2026 09:13:47 +0100 Subject: [PATCH] first version --- Startcode/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Startcode/input.c b/Startcode/input.c index 747448f..2ad13fc 100644 --- a/Startcode/input.c +++ b/Startcode/input.c @@ -21,7 +21,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) i++; } - return wordCount; + return i; //wordCount } static int createSingleWords(char text[MAX_LINE_LEN], char words[][MAX_WORD_LEN], unsigned int maxWordCount) @@ -38,7 +38,7 @@ static int createSingleWords(char text[MAX_LINE_LEN], char words[][MAX_WORD_LEN] strncpy(words[i], token, MAX_WORD_LEN - 1); //kleinbuchstaben --> GROßBUCHSTABEN int length = strlen(words[i]); - for(int j = 0; j < length; i++) + for(int j = 0; j < length; j++) { if(islower(words[i][j])) {