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

Function adr_append_line

src/store/store.c:7655–7664  ·  view source on GitHub ↗

Append a line to the current section content buffer. */

Source from the content-addressed store, hash-verified

7653
7654/* Append a line to the current section content buffer. */
7655static void adr_append_line(char *buf, int buf_sz, int *len, const char *line, int line_len) {
7656 if (*len > 0) {
7657 buf[(*len)++] = '\n';
7658 }
7659 if (*len + line_len < buf_sz - SKIP_ONE) {
7660 memcpy(buf + *len, line, line_len);
7661 *len += line_len;
7662 buf[*len] = '\0';
7663 }
7664}
7665
7666cbm_adr_sections_t cbm_adr_parse_sections(const char *content) {
7667 cbm_adr_sections_t result;

Callers 1

cbm_adr_parse_sectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected