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

Function hex_val

src/ui/httpd.c:582–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582static int hex_val(char ch) {
583 if (ch >= '0' && ch <= '9')
584 return ch - '0';
585 if (ch >= 'a' && ch <= 'f')
586 return ch - 'a' + 10;
587 if (ch >= 'A' && ch <= 'F')
588 return ch - 'A' + 10;
589 return -1;
590}
591
592bool cbm_http_query_param(const char *query, const char *name, char *buf, int bufsz) {
593 if (!query || !name || !buf || bufsz <= 0)

Callers 1

cbm_http_query_paramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected