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

Function finish_line

src/foundation/log.c:205–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205static void finish_line(char *buf, size_t bufsz, size_t pos) {
206 if (bufsz == 0) {
207 return;
208 }
209 if (pos >= bufsz) {
210 buf[bufsz - 1] = '\0';
211 } else {
212 buf[pos] = '\0';
213 }
214}
215
216static void emit_line(const char *line) {
217 /* 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