Question: How to program C shell in Linux or macOS platform that can call the function of another program? Please give me the example code of
How to program C shell in Linux or macOS platform that can call the function of another program? Please give me the example code of that.
for example, write a shell that can call function trans_SE in another program. also need to use the following system calls: fork(), wait(), exec() (or another function from the exec() family), exit().
Translator> trans_SE tigre (it will print tigre as english)
Translator> exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
