Question: Write C program CAT which behaves like UNIX utility cat, that is if no parameters are passed to CAT then it simply echoes what is

Write C program "CAT" which behaves like UNIX utility "cat", that is if no parameters are passed to "CAT" then it simply echoes what is typed to STDOUT, otherwise (filename(s) passed as parameters) "CAT" concatenates specified files. Use UNIX system calls open(2), read(3) and write(3)discussed in class. Submit the source code CAT.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Heres a simple C program that mimics the UNIX cat utility using sys... View full answer

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 Operating System Questions!