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

Function cbm_str_starts_with

src/foundation/str_util.c:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128bool cbm_str_starts_with(const char *s, const char *prefix) {
129 if (!s || !prefix) {
130 return false;
131 }
132 size_t plen = strlen(prefix);
133 return strncmp(s, prefix, plen) == 0;
134}
135
136bool cbm_str_ends_with(const char *s, const char *suffix) {
137 if (!s || !suffix) {

Callers 1

test_str_util.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected