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

Function cbm_http_path_match

src/ui/httpd.c:801–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799/* ── Pure helpers ─────────────────────────────────────────────── */
800
801bool cbm_http_path_match(const char *str, const char *pattern) {
802 if (!str || !pattern)
803 return false;
804 size_t plen = strlen(pattern);
805 if (plen > 0 && pattern[plen - 1] == '*')
806 return strncmp(str, pattern, plen - 1) == 0;
807 return strcmp(str, pattern) == 0;
808}
809
810static int hex_val(char ch) {
811 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