Skip to content

Commit

Permalink
Update exercises/practice/word-count/test_word_count.c
Browse files Browse the repository at this point in the history
makes function static so no definition is needed in a header file.

Co-authored-by: Ryan Hartlage <[email protected]>
  • Loading branch information
elmq0022 and ryanplusplus authored Dec 10, 2023
1 parent db56fa0 commit 3c23521
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exercises/practice/word-count/test_word_count.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ void tearDown(void)
{
}


int cmp_word_count_word(const void *a, const void *b){
static int cmp_word_count_word(const void *a, const void *b){
word_count_word_t *w1 = (word_count_word_t *)a;
word_count_word_t *w2 = (word_count_word_t *)b;
return strcmp(w1->text, w2->text);
Expand Down

0 comments on commit 3c23521

Please sign in to comment.