forked from freudenreichan/info2Praktikum-Wortsalat
Input Versuch1
This commit is contained in:
1 parent
71071cbbc8
commit
42a1ab8168
1 file changed
+7
@@ -9,4 +9,11 @@
|
|||||||
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
unsigned int wordCount = 0;
|
||||||
|
while(fgets(words[wordCount],MAX_WORD_LEN,file) != NULL){
|
||||||
|
wordCount++;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user