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

Function itoa_buf

src/pipeline/artifact.c:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56static _Thread_local char g_export_error[CBM_SZ_512];
57
58static const char *itoa_buf(int v) {
59 static _Thread_local char bufs[ART_RING][CBM_SZ_32];
60 static _Thread_local int idx = 0;
61 int i = idx;
62 idx = (idx + ART_NUL) & ART_RING_MASK;
63 snprintf(bufs[i], sizeof(bufs[i]), "%d", v);
64 return bufs[i];
65}
66
67const char *cbm_artifact_export_last_error(void) {
68 return g_export_error[0] ? g_export_error : NULL;

Callers 3

artifact_export_failFunction · 0.70
cbm_artifact_exportFunction · 0.70
cbm_artifact_importFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected