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

Function activation_string_copy

src/cli/activation_transaction.c:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static char *activation_string_copy(const char *value) {
162 if (!value) {
163 return NULL;
164 }
165 size_t length = strlen(value);
166 char *copy = malloc(length + 1U);
167 if (copy) {
168 memcpy(copy, value, length + 1U);
169 }
170 return copy;
171}
172
173static char *activation_string_span(const char *value, size_t length) {
174 char *copy = malloc(length + 1U);

Callers 4

activation_target_partsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected