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

Function pkgmap_itoa

src/pipeline/pass_pkgmap.c:85–89  ·  view source on GitHub ↗

Thread-local int→string for log key-value pairs */

Source from the content-addressed store, hash-verified

83
84/* Thread-local int→string for log key-value pairs */
85static const char *pkgmap_itoa(int val) {
86 static _Thread_local char buf[PKGMAP_ITOA_BUF];
87 snprintf(buf, sizeof(buf), "%d", val);
88 return buf;
89}
90
91/* Check if src at position p starts with literal str of known length. */
92static bool at_prefix(const char *p, const char *end, const char *prefix, int prefix_len) {

Callers 3

cbm_pkgmap_buildFunction · 0.85
cbm_pkgmap_scan_repoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected