generated from freudenreichan/info2Praktikum-Wortsalat
Erster schnipsel
This commit is contained in:
parent
2a46dd9df7
commit
f5337d419f
@ -8,5 +8,7 @@
|
|||||||
// 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 a;
|
file = fopen("words.txt", "r"); //liest das doc ein
|
||||||
|
if (file == NULL)
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user