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

Function copy_path

src/ui/http_server.c:869–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867static char g_binary_path[1024] = {0};
868
869static bool copy_path(char *out, size_t outsz, const char *path) {
870 if (!out || outsz == 0 || !path || !path[0]) {
871 return false;
872 }
873 int n = snprintf(out, outsz, "%s", path);
874 return n > 0 && (size_t)n < outsz;
875}
876
877#ifndef _WIN32
878static 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