generated from freudenreichan/info2Praktikum-Wortsalat
angefangen input neu zu schreiben
This commit is contained in:
parent
543ba65b7e
commit
63cafdbc0c
@ -2,6 +2,22 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
static char *singleWordBuffer;
|
||||||
|
|
||||||
|
|
||||||
|
// TODO:
|
||||||
|
// eine Funktion implementieren, die ein einzelnes Wort aus einer Textdatei (words.txt) einliest und als C-String zurückgibt.
|
||||||
|
char *readSingleWord(FILE *file)
|
||||||
|
{
|
||||||
|
fgets(singleWordBuffer, MAX_LINE_LEN, file);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Read words from file and store in 'words' array
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
#define MAX_BUFFER_LEN 256
|
#define MAX_BUFFER_LEN 256
|
||||||
|
|
||||||
// TODO?
|
// TODO?
|
||||||
@ -36,3 +52,5 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
|||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user