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

Function cif_string

src/discover/inventory_guard.c:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121unsigned char *cif_string(cif_context *c, const unsigned char *source, size_t length) {
122 if (length == SIZE_MAX) {
123 cif_fail(c, CBM_INVENTORY_LIMIT);
124 return NULL;
125 }
126 unsigned char *result = cif_alloc(c, length + 1, 1);
127 return result && cif_copy(c, result, source, length) ? result : NULL;
128}
129
130bool cif_compare(cif_context *c, cbm_inventory_path_t a, cbm_inventory_path_t b, int *result) {
131 if (!cif_event(c)) {

Callers 3

cif_directory_initFunction · 0.85
cif_rootFunction · 0.85
cif_fileFunction · 0.85

Calls 3

cif_failFunction · 0.85
cif_allocFunction · 0.85
cif_copyFunction · 0.85

Tested by

no test coverage detected