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

Function prefix_icase

src/cli/cli.c:13577–13586  ·  view source on GitHub ↗

Case-insensitive prefix match (portable — no strncasecmp dependency). */

Source from the content-addressed store, hash-verified

13575
13576/* Case-insensitive prefix match (portable — no strncasecmp dependency). */
13577static bool prefix_icase(const char *s, const char *prefix) {
13578 while (*prefix) {
13579 if (tolower((unsigned char)*s) != tolower((unsigned char)*prefix)) {
13580 return false;
13581 }
13582 s++;
13583 prefix++;
13584 }
13585 return true;
13586}
13587
13588/* Fetch latest release tag from GitHub via redirect header.
13589 * Returns heap-allocated tag (e.g. "v0.5.7") or NULL on failure. */

Callers 1

fetch_latest_tagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected