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

Function string_copy

src/daemon/ipc.c:199–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199static char *string_copy(const char *value) {
200 if (!value) {
201 return NULL;
202 }
203 size_t length = strlen(value);
204 char *copy = malloc(length + 1);
205 if (copy) {
206 memcpy(copy, value, length + 1);
207 }
208 return copy;
209}
210
211static char *string_format(const char *format, ...) {
212 va_list args;

Callers 5

process_lock_claim_modeFunction · 0.85
endpoint_snapshot_newFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected