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

Function activation_string_copy

src/cli/activation_transaction.c:144–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static char *activation_string_copy(const char *value) {
145 if (!value) {
146 return NULL;
147 }
148 size_t length = strlen(value);
149 char *copy = malloc(length + 1U);
150 if (copy) {
151 memcpy(copy, value, length + 1U);
152 }
153 return copy;
154}
155
156static char *activation_string_span(const char *value, size_t length) {
157 char *copy = malloc(length + 1U);

Callers 4

activation_target_partsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected