Question: Use C to write a program that: The source process reads information from a file (Therefore, you need to prepare a small text file for
Use C to write a program that:
The source process reads information from a file (Therefore, you need to prepare a small text file for testing purpose).
The source process calls fork() to create the filter process.
The filter process reads information from the source process (passed via an anonymous pipe), converts the uppercase characters to lowercase ones and vice versa, and then prints out the converted characters to the screen.
How to create an anonymous pipe: pipe() API.
**** I attempted the problem, and it is shown in the picture, but it outputs: Segmentation fault (core dumped). I dont know whats wrong****

#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
