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

Function write_file

tests/test_path_alias.c:220–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218/* ── End-to-end via the loader: real tsconfig in a tmp dir ─────── */
219
220static int write_file(const char *path, const char *content) {
221 FILE *f = fopen(path, "w");
222 if (!f) {
223 return -1;
224 }
225 size_t len = strlen(content);
226 int rc = fwrite(content, 1, len, f) == len ? 0 : -1;
227 fclose(f);
228 return rc;
229}
230
231TEST(path_alias_loader_monorepo) {
232 char tmpl[256];

Callers 1

test_path_alias.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected