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

Function ends_with

src/discover/discover.c:123–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121/* ── Helper: check if string ends with suffix ────────────── */
122
123static bool ends_with(const char *s, const char *suffix) {
124 size_t slen = strlen(s);
125 size_t sufflen = strlen(suffix);
126 if (sufflen > slen) {
127 return false;
128 }
129 return strcmp(s + slen - sufflen, suffix) == 0;
130}
131
132/* ── Helper: check if string contains substring ───────────── */
133

Callers 1

cbm_has_ignored_suffixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected