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

Function finish_line

src/foundation/log.c:224–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static void finish_line(char *buf, size_t bufsz, size_t pos) {
225 if (bufsz == 0) {
226 return;
227 }
228 if (pos >= bufsz) {
229 buf[bufsz - 1] = '\0';
230 } else {
231 buf[pos] = '\0';
232 }
233}
234
235static void emit_line(const char *line) {
236 /* Load ONCE: re-reading the global between the test and the call would

Callers 2

cbm_logFunction · 0.85
cbm_log_control_recordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected