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

Function string_copy

src/daemon/ipc.c:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static char *string_copy(const char *value) {
65 if (!value) {
66 return NULL;
67 }
68 size_t length = strlen(value);
69 char *copy = malloc(length + 1);
70 if (copy) {
71 memcpy(copy, value, length + 1);
72 }
73 return copy;
74}
75
76static char *string_format(const char *format, ...) {
77 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