generated from freudenreichan/info2Praktikum-Wortsalat
Compare commits
No commits in common. "bbdb1f22082148f360d267fb3ee35f2ba8c49e21" and "7fd01a91557112a35f3929485b82e95289a45a9e" have entirely different histories.
bbdb1f2208
...
7fd01a9155
@ -20,7 +20,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||
return 0;
|
||||
}
|
||||
|
||||
fgets(buffer, MAX_LINE_LEN * maxWordCount, file);
|
||||
fgets(buffer, MAX_LINE_LEN, file);
|
||||
//fscanf(file, "%s", buffer);
|
||||
|
||||
do
|
||||
@ -55,7 +55,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||
}
|
||||
|
||||
i++;
|
||||
} while ((i < MAX_LINE_LEN) && (word < maxWordCount));
|
||||
} while ((i < MAX_LINE_LEN) || (word < maxWordCount));
|
||||
|
||||
return word + 1;
|
||||
return word+1;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user