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

Function write_file

tests/test_path_alias.c:221–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_path_alias.cFile · 0.85

Calls 2

fopenFunction · 0.85
fwriteFunction · 0.85

Tested by

no test coverage detected