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

Function th_append_file

tests/test_helpers.h:73–83  ·  view source on GitHub ↗

Append content to a file. */

Source from the content-addressed store, hash-verified

71
72/* Append content to a file. */
73static inline int th_append_file(const char *path, const char *content) {
74 FILE *f = cbm_fopen(path, "ab");
75 if (!f) {
76 return -1;
77 }
78 if (content && content[0]) {
79 fputs(content, f);
80 }
81 fclose(f);
82 return 0;
83}
84
85/* ── Directory creation ───────────────────────────────────────── */
86

Callers 4

test_watcher.cFile · 0.85
test_pipeline.cFile · 0.85
reformat_filesFunction · 0.85

Calls 1

cbm_fopenFunction · 0.85

Tested by

no test coverage detected