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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!