| 132 | } |
| 133 | |
| 134 | static size_t jl_occurrences(const char *text, const char *needle) { |
| 135 | size_t count = 0; |
| 136 | size_t needle_length = strlen(needle); |
| 137 | while (needle_length > 0U && (text = strstr(text, needle)) != NULL) { |
| 138 | count++; |
| 139 | text += needle_length; |
| 140 | } |
| 141 | return count; |
| 142 | } |
| 143 | |
| 144 | typedef struct { |
| 145 | const char *content; |
no outgoing calls
no test coverage detected