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

Function gf_write

tests/test_test_impact_git.c:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43static bool gf_write(const char *path, const void *bytes, size_t length) {
44 FILE *file = cbm_fopen(path, "wb");
45 if (!file)
46 return false;
47 bool ok = fwrite(bytes, 1, length, file) == length;
48 if (fclose(file) != 0)
49 ok = false;
50 return ok;
51}
52
53/* Native executable fixture for Git's optional diff/textconv command. Extra
54 * arguments added by Git are deliberately ignored. Normal harness entry keeps

Callers 5

gf_objectFunction · 0.85
gfi_raw_tree_formatFunction · 0.85

Calls 2

cbm_fopenFunction · 0.85
fwriteFunction · 0.85

Tested by

no test coverage detected