generated from freudenreichan/info2Praktikum-Wortsalat
update
This commit is contained in:
parent
c26a55f965
commit
9e172b664f
@ -20,11 +20,12 @@ 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; i++)
|
||||
for(i = 0; i < MAX_WORD_LEN -1; i++) //MAX = 100
|
||||
{
|
||||
words[counter][i] = toupper(word_parts[i]); //Großbuchstaben erzeugen
|
||||
puts("?????????????????");
|
||||
if(word_parts[i] == '\0')
|
||||
printf("%c", word_parts[i+1]);
|
||||
if(word_parts[i+1] == '\0')
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user