This commit is contained in:
Manuel Nitsche 2025-10-28 14:58:00 +01:00
parent 9e3c8e697d
commit 79a20ce714
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
// Wort kopieren und in Großbuchstaben umwandeln // Wort kopieren und in Großbuchstaben umwandeln
strcpy(words[wordCount], token); strcpy(words[wordCount], token);
for (int i = 0; words[wordCount][i] != '\0'; i++) { for (int i = 0; words[wordCount][i] != '\0'; i++) {
words[wordCount][i] = toupper((unsigned char)words[wordCount][i]); words[wordCount][i] = toupper((unsigned char) words[wordCount][i]);
} }
wordCount++; wordCount++;
} }

View File

@ -43,6 +43,7 @@ int main(int argc, char *argv[])
{ {
// Start the game if successful // Start the game if successful
startGame(wordSalad,SALAD_SIZE,words,wordCount,SALAD_SIZE); startGame(wordSalad,SALAD_SIZE,words,wordCount,SALAD_SIZE);
// welche Variable wird für windowWidth gewählt?
} }
else else
{ {