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

Function ends_with

src/discover/discover.c:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134/* ── Helper: check if string ends with suffix ────────────── */
135
136static bool ends_with(const char *s, size_t slen, const char *suffix) {
137 size_t sufflen = strlen(suffix);
138 if (sufflen > slen) {
139 return false;
140 }
141 return strcmp(s + slen - sufflen, suffix) == 0;
142}
143
144/* ── Helper: check if string contains substring ───────────── */
145

Callers 1

cbm_has_ignored_suffixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected