new branch

This commit is contained in:
fonkou 2025-11-04 16:42:15 +01:00
parent cc5ca1144a
commit 8c5a987fe4
3 changed files with 4 additions and 3 deletions

View File

@ -13,12 +13,13 @@
// Creates the word salad by placing words randomly and filling empty spaces // Creates the word salad by placing words randomly and filling empty spaces
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount) int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
{ {
printf("Hello World\n");
return rand() % wordCount;
} }
// Prints the word salad to console // Prints the word salad to console
void showWordSalad(const char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen) void showWordSalad(const char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen)
{ {
printf("Hello World\n");
} }

Binary file not shown.

View File

@ -22,7 +22,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
word = strtok (NULL, " ,;"); word = strtok (NULL, " ,;");
} }
} }
//printf("\n %d", counter); printf("\n counter %d", counter);
return counter; return counter;
} }