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

Function tf_path_has_parent

tests/test_main.c:286–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286static bool tf_path_has_parent(const char *path, const char *parent) {
287 size_t length = parent ? strlen(parent) : 0;
288 return path && length > 0 && strncmp(path, parent, length) == 0 &&
289 (path[length] == '/' || path[length] == '\\');
290}
291
292/* The daemon rendezvous is not derived from HOME or the cache: its key is a
293 * constant product hash and its default parent is the system temp root. With

Callers 1

test_main.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected