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

Function ptr_present

tests/test_test_impact_tree.c:3070–3078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3068}
3069
3070static bool ptr_present(const char *path) {
3071#ifdef _WIN32
3072 wchar_t wide[PT_PATH];
3073 return pt_wide(path, wide) && GetFileAttributesW(wide) != INVALID_FILE_ATTRIBUTES;
3074#else
3075 struct stat st;
3076 return lstat(path, &st) == 0;
3077#endif
3078}
3079
3080static bool ptr_fault_case(pt_fixture *fx, cbm_pinned_tree_read_fault_t fault, bool corrupt) {
3081 if (!ptr_start(fx))

Callers 1

ptr_fault_caseFunction · 0.85

Calls 2

pt_wideFunction · 0.85
lstatFunction · 0.85

Tested by

no test coverage detected