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

Function wide_copy

src/daemon/ipc.c:3607–3617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3605}
3606
3607static wchar_t *wide_copy(const wchar_t *value) {
3608 if (!value) {
3609 return NULL;
3610 }
3611 size_t length = wcslen(value);
3612 wchar_t *copy = malloc((length + 1) * sizeof(*copy));
3613 if (copy) {
3614 memcpy(copy, value, (length + 1) * sizeof(*copy));
3615 }
3616 return copy;
3617}
3618
3619static void win_security_destroy(win_security_t *security) {
3620 if (!security) {

Calls

no outgoing calls

Tested by

no test coverage detected