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

Function is_hex_digit

tests/repro/repro_issue557.c:107–109  ·  view source on GitHub ↗

Unique quarantine generations use: * * .db.corrupt.<16-hex-token> * * Only the main DB generation proves recoverability. SQLite sidecars and * reservation artifacts (for example, -wal, -shm, or .pending) must not make * the primary survival assertion pass on their own. */

Source from the content-addressed store, hash-verified

105 * reservation artifacts (for example, -wal, -shm, or .pending) must not make
106 * the primary survival assertion pass on their own. */
107static int is_hex_digit(char ch) {
108 return (ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'f') || (ch >= 'A' && ch <= 'F');
109}
110
111static int is_unique_corrupt_main_name(const char *name) {
112 char prefix[CBM_DIRENT_NAME_MAX];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected