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

Function sp_stdout_payload

tests/test_subprocess.c:1772–1785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1770static const char sp_stdout_text[] = "stdout-only\n";
1771
1772static void sp_stdout_payload(unsigned char bytes[SP_STDOUT_BYTES]) {
1773 for (int i = 0; i < SP_STDOUT_BYTES; i++)
1774 bytes[i] = (unsigned char)('a' + i % 26);
1775 bytes[0] = 'B';
1776 bytes[1] = '\0';
1777 bytes[2] = '\r';
1778 bytes[3] = '\n';
1779 bytes[4] = '\n';
1780 bytes[1022] = 'X';
1781 bytes[1023] = '\r';
1782 bytes[1024] = '\n';
1783 bytes[2048] = '\0';
1784 bytes[SP_STDOUT_BYTES - 1] = 'Z'; /* final byte has no newline */
1785}
1786
1787/* Called before normal harness setup. Normal entry remembers argv[0], whose
1788 * storage lasts through main; the private exact argv grammar never runs suites. */

Callers 2

test_subprocess.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected