endloschleife2

This commit is contained in:
maxgrf 2025-11-06 15:50:21 +01:00
parent 16b0b9a450
commit c26a55f965
5 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -20,10 +20,13 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
while(word_parts != NULL && counter < maxWordCount)
{
for(i = 0; i < MAX_WORD_LEN -1 || word_parts[i] != '\0'; i++)
for(i = 0; i < MAX_WORD_LEN -1; i++)
{
words[counter][i] = toupper(word_parts[i]); //Großbuchstaben erzeugen
puts("?????????????????");
if(word_parts[i] == '\0')
break;
}
words[counter][i] = '\0'; //Stringdefinition vervollständigen
}

Binary file not shown.

Binary file not shown.

Binary file not shown.