Entfernen von doppelter else func

This commit is contained in:
hruschkajo103995 committed 2026-10-28 22:20:01 +01:00
1 parent 6340b63273
commit c2d35dfe89
2 files changed
+9 -19

No files matched your search

+3 -2
View File
@@ -23,7 +23,8 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN],
char *word = strtok(line, " ,;\n\t\r");
while (word != NULL && wordCount < maxWordCount) {
while (word != NULL && wordCount < maxWordCount)
{
strncpy(words[wordCount], word, MAX_WORD_LEN - 1);
words[wordCount][MAX_WORD_LEN - 1] = '\0';
@@ -31,7 +32,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN],
while (words[wordCount][i] != '\0') {
words[wordCount][i] =
(char)toupper((unsigned char)words[wordCount][i]);
(char)toupper((unsigned char)words[wordCount][i]);// char davor da toupper einen int wert liefert und einen unsigned char bekommt
i++;
}