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

Function wide_copy

src/daemon/ipc.c:3545–3555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3543}
3544
3545static wchar_t *wide_copy(const wchar_t *value) {
3546 if (!value) {
3547 return NULL;
3548 }
3549 size_t length = wcslen(value);
3550 wchar_t *copy = malloc((length + 1) * sizeof(*copy));
3551 if (copy) {
3552 memcpy(copy, value, (length + 1) * sizeof(*copy));
3553 }
3554 return copy;
3555}
3556
3557static void win_security_destroy(win_security_t *security) {
3558 if (!security) {

Calls

no outgoing calls

Tested by

no test coverage detected