19 lines
462 B
C
19 lines
462 B
C
#include "input.h"
|
|
#include <ctype.h>
|
|
#include <string.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
|
|
|
|
// Read words from file and store in 'words' array
|
|
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
|
{
|
|
int wordCount = 0;
|
|
|
|
return wordCount;
|
|
}
|