Count the number of '/' in a string. */
| 9788 | |
| 9789 | /* Count the number of '/' in a string. */ |
| 9790 | static int count_slashes(const char *s) { |
| 9791 | int n = 0; |
| 9792 | for (; *s; s++) { |
| 9793 | if (*s == '/') { |
| 9794 | n++; |
| 9795 | } |
| 9796 | } |
| 9797 | return n; |
| 9798 | } |
| 9799 | |
| 9800 | /* Push a tree entry, growing the array if needed. */ |
| 9801 | static void push_tree_entry(cbm_file_tree_entry_t **entries, int *en, int *ecap, |
no outgoing calls
no test coverage detected