MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / jl_occurrences

Function jl_occurrences

tests/test_config_json_like.c:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static 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
144typedef struct {
145 const char *content;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected