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

Function capture_sink

tests/test_index_format.c:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50static size_t g_log_len;
51
52static void capture_sink(const char *line) {
53 size_t n = strlen(line);
54 if (g_log_len + n + 2 < sizeof(g_log_buf)) {
55 memcpy(g_log_buf + g_log_len, line, n);
56 g_log_len += n;
57 g_log_buf[g_log_len++] = '\n';
58 g_log_buf[g_log_len] = '\0';
59 }
60}
61
62static void capture_reset(void) {
63 g_log_len = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected