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

Function agent_path_prefix_equal

src/cli/agent_clients.c:219–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static bool agent_path_prefix_equal(const char *candidate, const char *root, size_t length,
220 bool windows) {
221 for (size_t i = 0U; i < length; i++) {
222 unsigned char left = (unsigned char)candidate[i];
223 unsigned char right = (unsigned char)root[i];
224 if (windows) {
225 left = (unsigned char)tolower(left);
226 right = (unsigned char)tolower(right);
227 }
228 if (left != right) {
229 return false;
230 }
231 }
232 return true;
233}
234
235static int agent_rovo_safe_override(const char *configured_path, const char *home_dir, bool windows,
236 char *path_out, size_t path_out_size) {

Callers 1

agent_rovo_safe_overrideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected