| 20 | */ |
| 21 | |
| 22 | void cleanup_argarray(char ***words, int *wordCount) |
| 23 | { |
| 24 | for (int i = 0; i < *wordCount; i++) |
| 25 | { |
| 26 | free((*words)[i]); |
| 27 | } |
| 28 | free(*words); |
| 29 | *words = NULL; |
| 30 | *wordCount = 0; |
| 31 | } |
| 32 | |
| 33 | // function to reduce duplicated code |
| 34 | void process_word(char ***words, int *wordCount, char *word, int wordIndex) |
no outgoing calls
no test coverage detected