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

Function copy_path

src/ui/http_server.c:1486–1492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1484static char g_binary_path[1024] = {0};
1485
1486static bool copy_path(char *out, size_t outsz, const char *path) {
1487 if (!out || outsz == 0 || !path || !path[0]) {
1488 return false;
1489 }
1490 int n = snprintf(out, outsz, "%s", path);
1491 return n > 0 && (size_t)n < outsz;
1492}
1493
1494#ifndef _WIN32
1495static bool is_executable_file(const char *path) {

Callers 3

resolve_from_pathFunction · 0.85
resolve_self_executableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected