input file updated

This commit is contained in:
Jonas Urban 2025-10-27 14:43:00 +01:00
parent 65461ae414
commit c19dfd18f0

View File

@ -14,7 +14,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
while (fgets(lines, sizeof(lines) , file) != NULL) while (fgets(lines, sizeof(lines) , file) != NULL)
{ {
for (int i = 0; lines[i] != '\0'; i++) //Entfernen von \n aus dem String for (int i = 0; lines[i] != '\0'; i++)
{ {
lines[i] = toupper(lines[i]); lines[i] = toupper(lines[i]);
if (lines[i] == '\n') if (lines[i] == '\n')