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

Function heap_strdup

src/graph_buffer/graph_buffer.c:122–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120/* ── Helpers ─────────────────────────────────────────────────────── */
121
122static char *heap_strdup(const char *s) {
123 return s ? strdup(s) : strdup("{}");
124}
125
126/* Intern a repetitive string into the buffer's pool: identical content collapses
127 * 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