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

Function sp_stdin_write

tests/test_subprocess.c:2127–2135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2125}
2126
2127static bool sp_stdin_write(const char *path, const void *bytes, size_t count) {
2128 FILE *file = cbm_fopen(path, "wb");
2129 if (!file)
2130 return false;
2131 bool ok = count == 0 || fwrite(bytes, 1, count, file) == count;
2132 if (fclose(file) != 0)
2133 ok = false;
2134 return ok;
2135}
2136
2137static bool sp_stdin_clean(int rc, const cbm_proc_result_t *result) {
2138 return rc == 0 && result->outcome == CBM_PROC_CLEAN && result->exit_code == 0 &&

Callers 3

sp_stdin_check_rejectionFunction · 0.85
sp_stdin_probeFunction · 0.85
test_subprocess.cFile · 0.85

Calls 2

cbm_fopenFunction · 0.85
fwriteFunction · 0.85

Tested by

no test coverage detected