The stream opened by mpopen is closed by mpclose.
The interface to mpopen and mpclose is identical to that of popen(3) and pclose(3), as is their functionality.
You are to write these two library functions.
Hint: The process environment should be changed after the fork(2). if you change it before the fork, you will change the parent process' environment, which is not correct!
Note: you may use any language you like, but the result must be a compiled library that can be called from a C program. We will supply our own driver for grading!
Department of Computer Science
University of California at Davis
Davis, CA 95616-8562