Compare commits

..

No commits in common. "d479ed40005cba9972e2d0ceadaeafdcf6310dbc" and "a70da6d7ca2a0d28318af77f699a315e37404a93" have entirely different histories.

View File

@ -1,13 +1,9 @@
#include "input.h"
#include <ctype.h>
#include <string.h>
#include <ctype.h>
// TODO:
// eine Funktion implementieren, die ein einzelnes Wort aus einer Textdatei
// (words.txt) einliest und als C-String zurückgibt.
// Bedingungen, die in main.c geprüft werden:
// - existiert die angegebene Datei
// eine Funktion implementieren, die ein einzelnes Wort aus einer Textdatei (words.txt) einliest und als C-String zurückgibt.
// Read words from file and store in 'words' array
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
@ -43,4 +39,4 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
return word_counter;
}
}