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

Function ta_copy_string

src/mcp/test_impact_artifact.c:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162static bool ta_copy_string(yyjson_val *root, const char *key, char *out, size_t cap) {
163 yyjson_val *v = yyjson_obj_get(root, key);
164 const char *s = yyjson_is_str(v) ? yyjson_get_str(v) : NULL;
165 if (!s || strlen(s) >= cap) {
166 return false;
167 }
168 memcpy(out, s, strlen(s) + 1);
169 return true;
170}
171
172cbm_ti_receipt_status_t cbm_ti_receipt_read(const char *bundle_dir, cbm_ti_receipt_t *out) {
173 if (!out) {

Callers 1

cbm_ti_receipt_readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected