
Implement pipe_chain, a compact pipeline executor for already-tokenized commands.
pipe_chain({{"printf", "alpha\\nbeta\\n", NULL}, {"grep", "beta", NULL}, NULL})beta\npipe_chain.ccloseforkwaitexitexecvpdup2pipe<unistd.h>declares close, fork, execvp, dup2 and pipe<sys/wait.h>declares wait<stdlib.h>declares exit<stddef.h>defines NULL
Run the tests to grade your code
Implement pipe_chain, a compact pipeline executor for already-tokenized commands.
pipe_chain({{"printf", "alpha\\nbeta\\n", NULL}, {"grep", "beta", NULL}, NULL})beta\npipe_chain.ccloseforkwaitexitexecvpdup2pipe<unistd.h>declares close, fork, execvp, dup2 and pipe<sys/wait.h>declares wait<stdlib.h>declares exit<stddef.h>defines NULL
Run the tests to grade your code
Memory will appear here