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

Function rp409_read_file

tests/repro/repro_issue409.c:81–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static const char *rp409_read_file(const char *path) {
82 static char buf[16384];
83 FILE *f = fopen(path, "r");
84 if (!f)
85 return NULL;
86 size_t n = fread(buf, 1, sizeof(buf) - 1, f);
87 fclose(f);
88 buf[n] = '\0';
89 return buf;
90}
91
92/* Recursively create directory (simple two-level: parent + child). */
93static int rp409_mkdirp(const char *path) {

Callers 1

repro_issue409.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected