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

Function dm_control_write

tests/test_doc_mentions.c:596–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596static bool dm_control_write(const char *path, const char *source, size_t length) {
597 FILE *file = cbm_fopen(path, "wb");
598 if (!file) {
599 return false;
600 }
601 bool complete = fwrite(source, 1, length, file) == length;
602 return fclose(file) == 0 && complete;
603}
604
605/* Establish the routing contract using complete byte spans, including NUL.
606 * Own imports are local; changes to a declared base can affect other files. */

Callers 1

Calls 2

cbm_fopenFunction · 0.85
fwriteFunction · 0.85

Tested by

no test coverage detected