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

Function tpt_string

src/mcp/test_impact_tree_util.c:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133char *tpt_string(tpt_context *c, const char *s, size_t n) {
134 if (n == SIZE_MAX) {
135 tpt_fail(c, CBM_PINNED_TREE_LIMIT, "string size overflow");
136 return NULL;
137 }
138 char *copy = tpt_alloc(c, n + 1, 1);
139 return copy && tpt_copy(c, copy, s, n) ? copy : NULL;
140}
141
142bool tpt_oid(tpt_context *c, const char *oid, unsigned width) {
143 if (!oid || (width != 40 && width != 64))

Callers 3

tpt_copy_identity_stringFunction · 0.85
tpt_plan_rowFunction · 0.85
tpt_planFunction · 0.85

Calls 3

tpt_failFunction · 0.85
tpt_allocFunction · 0.85
tpt_copyFunction · 0.85

Tested by

no test coverage detected