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

Function sp_stdout_log

tests/test_subprocess.c:1892–1900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1890} sp_stdout_logs_t;
1891
1892static void sp_stdout_log(const char *line, void *opaque) {
1893 sp_stdout_logs_t *log = opaque;
1894 if (log->count >= 4 || strlen(line) >= sizeof(log->lines[0])) {
1895 log->overflow = true;
1896 } else {
1897 memcpy(log->lines[log->count], line, strlen(line) + 1);
1898 }
1899 log->count++;
1900}
1901
1902static bool sp_stdout_stderr_only(const sp_stdout_logs_t *log) {
1903 return !log->overflow && log->count == 2 && strcmp(log->lines[0], "stderr-first") == 0 &&

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected