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

Function write_go_file

tests/test_pipeline.c:18759–18769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18757}
18758
18759static bool write_go_file(const char *dir, const char *name, const char *source) {
18760 char path[512];
18761 snprintf(path, sizeof(path), "%s/%s", dir, name);
18762 FILE *f = fopen(path, "w");
18763 if (!f) {
18764 return false;
18765 }
18766 bool ok = fputs(source, f) >= 0;
18767 fclose(f);
18768 return ok;
18769}
18770
18771/* ═══════════════════════════════════════════════════════════════════
18772 * FastAPI Depends() edge tracking (PR #66, fix #27)

Callers 1

test_pipeline.cFile · 0.85

Calls 1

fopenFunction · 0.85

Tested by

no test coverage detected