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

Function heap_strdup

src/graph_buffer/graph_buffer.c:126–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124/* ── Helpers ─────────────────────────────────────────────────────── */
125
126static char *heap_strdup(const char *s) {
127 return s ? strdup(s) : strdup("{}");
128}
129
130/* Intern a repetitive string into the buffer's pool: identical content collapses
131 * to a single heap copy owned by the pool. NULL maps to "{}" (matches

Callers 4

cbm_gbuf_upsert_nodeFunction · 0.70
cbm_gbuf_insert_edgeFunction · 0.70
merge_update_existingFunction · 0.70
merge_copy_new_nodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected