
Implement process_stream_open, a small process launcher that exposes one end of a pipe.
process_stream_open("printf", (char *const []){"printf", "ready\\n", NULL}, 'r')Expected result
fd reading ready\nFor your own tracking. Tests grade your code.
process_stream_open("cat", (char *const []){"cat", NULL}, 'w')Expected result
fd writing to child stdinExpected files
process_stream_open.cAllowed functions
pipeforkdup2execvpcloseexit
v0.40: Create exercises. Challenge the community.
Meet Studio →Implement process_stream_open, a small process launcher that exposes one end of a pipe.
process_stream_open("printf", (char *const []){"printf", "ready\\n", NULL}, 'r')Expected result
fd reading ready\nFor your own tracking. Tests grade your code.
process_stream_open("cat", (char *const []){"cat", NULL}, 'w')Expected result
fd writing to child stdinExpected files
process_stream_open.cAllowed functions
pipeforkdup2execvpcloseexit
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.