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

Function cbm_http_path_match

src/ui/httpd.c:796–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794/* ── Pure helpers ─────────────────────────────────────────────── */
795
796bool cbm_http_path_match(const char *str, const char *pattern) {
797 if (!str || !pattern)
798 return false;
799 size_t plen = strlen(pattern);
800 if (plen > 0 && pattern[plen - 1] == '*')
801 return strncmp(str, pattern, plen - 1) == 0;
802 return strcmp(str, pattern) == 0;
803}
804
805static int hex_val(char ch) {
806 if (ch >= '0' && ch <= '9')

Callers 2

dispatch_requestFunction · 0.85
test_httpd.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected