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

Function gf_absolute

tests/test_test_impact_git.c:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static bool gf_absolute(const char *path) {
35#ifdef _WIN32
36 return path && ((path[0] && path[1] == ':' && (path[2] == '/' || path[2] == '\\')) ||
37 (path[0] == '\\' && path[1] == '\\'));
38#else
39 return path && path[0] == '/';
40#endif
41}
42
43static bool gf_write(const char *path, const void *bytes, size_t length) {
44 FILE *file = cbm_fopen(path, "wb");

Callers 2

gf_fixture_openFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected