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

Function activation_string_copy

src/cli/activation_transaction.c:172–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static char *activation_string_copy(const char *value) {
173 if (!value) {
174 return NULL;
175 }
176 size_t length = strlen(value);
177 char *copy = malloc(length + 1U);
178 if (copy) {
179 memcpy(copy, value, length + 1U);
180 }
181 return copy;
182}
183
184static char *activation_string_span(const char *value, size_t length) {
185 char *copy = malloc(length + 1U);

Callers 4

activation_target_partsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected