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

Function write_json

tests/test_userconfig.c:21–29  ·  view source on GitHub ↗

Write a JSON file to path. Returns 0 on success. */

Source from the content-addressed store, hash-verified

19
20/* Write a JSON file to path. Returns 0 on success. */
21static int write_json(const char *path, const char *json) {
22 FILE *f = fopen(path, "w");
23 if (!f) {
24 return -1;
25 }
26 fputs(json, f);
27 fclose(f);
28 return 0;
29}
30
31/* ── Tests: project config ───────────────────────────────────────── */
32

Callers 1

test_userconfig.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected