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

Function ri_write_text

tests/test_index_resilience.c:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35/* ── Local helpers ──────────────────────────────────────────────── */
36
37static void ri_write_text(const char *dir, const char *name, const char *content) {
38 char path[700];
39 snprintf(path, sizeof(path), "%s/%s", dir, name);
40 FILE *f = fopen(path, "wb");
41 if (f) {
42 fputs(content, f);
43 fclose(f);
44 }
45}
46
47/* Write a comment-only python file padded well past `bytes`. The file is never
48 * parsed (the size cap rejects it before extraction), so its content only needs

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected