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

Function tia_write

tests/test_test_impact_artifact.c:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <string.h>
11
12static bool tia_write(const char *dir, const char *name, const char *text) {
13 char path[1024];
14 snprintf(path, sizeof(path), "%s/%s", dir, name);
15 FILE *f = fopen(path, "wb");
16 if (!f) {
17 return false;
18 }
19 bool ok = fputs(text, f) >= 0;
20 return fclose(f) == 0 && ok;
21}
22
23static cbm_ti_receipt_t tia_receipt(bool coverage) {
24 cbm_ti_receipt_t r = {0};

Callers 1

Calls 1

fopenFunction · 0.85

Tested by

no test coverage detected