forked from freudenreichan/info2Praktikum-Wortsalat
Testpush Änderung Input
This commit is contained in:
1 parent
93db739464
commit
73bff4d186
1 file changed
+6
-1
+6
-1
@@ -8,5 +8,10 @@
|
|||||||
// Read words from file and store in 'words' array
|
// Read words from file and store in 'words' array
|
||||||
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||||
{
|
{
|
||||||
|
int i=0;
|
||||||
|
while (i<maxWordCount && fscanf(file, "%s", words[i]) != EOF)
|
||||||
|
{
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
return i;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user