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

Function bootstrap_read_file

tests/test_daemon_bootstrap.c:988–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988static bool bootstrap_read_file(const char *path, char *out, size_t capacity) {
989 FILE *file = cbm_fopen(path, "rb");
990 if (!file) {
991 return false;
992 }
993 size_t used = fread(out, 1, capacity - 1, file);
994 out[used] = '\0';
995 (void)fclose(file);
996 return true;
997}
998
999/* The record contract behind the fail-fast: a real listener failure in this
1000 * process is recorded and read back with stage, errno, and path; a record

Callers 1

Calls 2

cbm_fopenFunction · 0.85
freadFunction · 0.85

Tested by

no test coverage detected