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

Function at_prefix

src/pipeline/pass_pkgmap.c:92–94  ·  view source on GitHub ↗

Check if src at position p starts with literal str of known length. */

Source from the content-addressed store, hash-verified

90
91/* Check if src at position p starts with literal str of known length. */
92static bool at_prefix(const char *p, const char *end, const char *prefix, int prefix_len) {
93 return p + prefix_len <= end && memcmp(p, prefix, (size_t)prefix_len) == 0;
94}
95
96/* ── Per-worker collection ─────────────────────────────────────── */
97

Callers 2

toml_extract_nameFunction · 0.85
pom_find_tagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected