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

Function pf_write

tests/test_pipeline_frozen.c:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 return n > 0 && (size_t)n < size;
68}
69static bool pf_write(const char *path, const char *text) {
70 FILE *file = cbm_fopen(path, "wb");
71 if (!file)
72 return false;
73 size_t len = strlen(text);
74 bool ok = fwrite(text, 1, len, file) == len;
75 return fclose(file) == 0 && ok;
76}
77static bool pf_source_write(pf_fixture_t *f, const char *leaf, const char *text) {
78 char path[1024];
79 return pf_path(path, sizeof(path), f->source, leaf) && pf_write(path, text);

Callers 6

pf_source_writeFunction · 0.85
pf_before_publishFunction · 0.85
pf_hook_failureFunction · 0.85
pf_sidecar_refusalFunction · 0.85
pf_publish_collisionFunction · 0.85

Calls 2

cbm_fopenFunction · 0.85
fwriteFunction · 0.85

Tested by

no test coverage detected