changed return type of readWords() to unsigned int

This commit is contained in:
Andreas Binner committed 2026-10-29 22:11:52 +01:00
1 parent 1a796d8144
commit 594dd3c2ce
1 file changed
+1 -1
+1 -1
View File
@@ -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];