This commit is contained in:
maxgrf 2025-11-06 16:15:25 +01:00
parent bbad6afd45
commit b34074233d
6 changed files with 1 additions and 5 deletions

View File

@ -25,10 +25,10 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
words[counter][i] = toupper(word_parts[i]); //Großbuchstaben erzeugen
puts("?????????????????");
printf("%c", word_parts[i+1]);
words[counter][i] = '\0'; //Stringdefinition vervollständigen
if(word_parts[i+1] == '\0')
break;
}
words[counter][i] = '\0'; //Stringdefinition vervollständigen
counter++; // Wort eingelesen, Wortzähler erhöhen
word_parts = strtok(NULL, ",;\n\t/. "); //NULL für Zeiger angeben

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
Hund,Katze; Maus

View File

@ -1,3 +0,0 @@
Apfel
Banane
Kiwi