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

Function th_append_file

tests/test_helpers.h:69–79  ·  view source on GitHub ↗

Append content to a file. */

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected