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

Function copy_path

src/ui/http_server.c:885–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883static char g_binary_path[1024] = {0};
884
885static bool copy_path(char *out, size_t outsz, const char *path) {
886 if (!out || outsz == 0 || !path || !path[0]) {
887 return false;
888 }
889 int n = snprintf(out, outsz, "%s", path);
890 return n > 0 && (size_t)n < outsz;
891}
892
893#ifndef _WIN32
894static 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