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

Function string_copy

src/daemon/ipc.c:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static char *string_copy(const char *value) {
72 if (!value) {
73 return NULL;
74 }
75 size_t length = strlen(value);
76 char *copy = malloc(length + 1);
77 if (copy) {
78 memcpy(copy, value, length + 1);
79 }
80 return copy;
81}
82
83static char *string_format(const char *format, ...) {
84 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