Code sichten
This commit is contained in:
parent
f0ff88538e
commit
695f0c087c
@ -1,12 +1,18 @@
|
|||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include <string.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// eine Funktion implementieren, die ein einzelnes Wort aus einer Textdatei (words.txt) einliest und als C-String zurückgibt.
|
// 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
|
// 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 wordCount = 0;
|
||||||
|
|
||||||
}
|
return wordCount;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user