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

Function pc_write

tests/test_pipeline_conventions.c:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 return n > 0 && (size_t)n < cap;
49}
50static bool pc_write(const char *path, const char *text) {
51 FILE *f = cbm_fopen(path, "wb");
52 if (!f) return false;
53 size_t size = strlen(text);
54 bool ok = fwrite(text, 1, size, f) == size;
55 return fclose(f) == 0 && ok;
56}
57static bool pc_source_write(pc_fixture_t *f, const char *leaf, const char *text) {
58 char path[1024];
59 return pc_path(path, sizeof(path), f->repo, leaf) && pc_write(path, text);

Callers 6

pc_source_writeFunction · 0.85
pc_seedFunction · 0.85
pc_configured_caseFunction · 0.85
pc_mutate_configFunction · 0.85
pc_cpp_filesFunction · 0.85

Calls 2

cbm_fopenFunction · 0.85
fwriteFunction · 0.85

Tested by

no test coverage detected