From 594dd3c2ce08c8a8fabfce91a58df1dff30b3948 Mon Sep 17 00:00:00 2001 From: Andreas Binner Date: Thu, 29 Oct 2026 22:11:52 +0100 Subject: [PATCH] changed return type of readWords() to unsigned int --- Startcode/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Startcode/input.c b/Startcode/input.c index 81b2433..65541fd 100644 --- a/Startcode/input.c +++ b/Startcode/input.c @@ -9,7 +9,7 @@ // 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); -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; char lineRead[MAX_LINE_LEN];