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

Function ri_write_text

tests/test_index_resilience.c:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23/* ── Local helpers ──────────────────────────────────────────────── */
24
25static void ri_write_text(const char *dir, const char *name, const char *content) {
26 char path[700];
27 snprintf(path, sizeof(path), "%s/%s", dir, name);
28 FILE *f = fopen(path, "wb");
29 if (f) {
30 fputs(content, f);
31 fclose(f);
32 }
33}
34
35/* Write a comment-only python file padded well past `bytes`. The file is never
36 * 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