generated from freudenreichan/info2Praktikum-Wortsalat
endloschleife2
This commit is contained in:
parent
16b0b9a450
commit
c26a55f965
Binary file not shown.
@ -20,10 +20,13 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
|||||||
|
|
||||||
while(word_parts != NULL && counter < 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
|
words[counter][i] = toupper(word_parts[i]); //Großbuchstaben erzeugen
|
||||||
puts("?????????????????");
|
puts("?????????????????");
|
||||||
|
if(word_parts[i] == '\0')
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
words[counter][i] = '\0'; //Stringdefinition vervollständigen
|
words[counter][i] = '\0'; //Stringdefinition vervollständigen
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user