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

Function ia_hash

src/ui/atlas_impact.c:319–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319static bool ia_hash(const char *s) {
320 size_t len = strlen(s);
321 if (len != 40 && len != 64)
322 return false;
323 for (size_t i = 0; i < len; i++)
324 if (!((s[i] >= '0' && s[i] <= '9') || (s[i] >= 'a' && s[i] <= 'f')))
325 return false;
326 return true;
327}
328
329static char *ia_token(char **cursor, const char *end) {
330 if (*cursor >= end)

Callers 1

ia_historyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected