generated from freudenreichan/info2Praktikum-Wortsalat
changed return type of readWords() to unsigned int
This commit is contained in:
1 parent
1a796d8144
commit
594dd3c2ce
1 file changed
+1
-1
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
// Read words from file and store in 'words' array
|
// Read words from file and store in 'words' array
|
||||||
static int createSingleWords(char text[MAX_LINE_LEN], char words[][MAX_WORD_LEN], unsigned int maxWordCount);
|
static int createSingleWords(char text[MAX_LINE_LEN], char words[][MAX_WORD_LEN], unsigned int maxWordCount);
|
||||||
|
|
||||||
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
unsigned int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||||
{
|
{
|
||||||
int wordCount = 0;
|
int wordCount = 0;
|
||||||
char lineRead[MAX_LINE_LEN];
|
char lineRead[MAX_LINE_LEN];
|
||||||
|
|||||||
Reference in new issue
Block a user