Testpush Änderung Input

This commit is contained in:
welschph103497 committed 2026-10-19 09:16:57 +02:00
1 parent 93db739464
commit 73bff4d186
1 file changed
+6 -1
+6 -1
View File
@@ -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;
} }