Question: Make changes in the given C program. The given C program make a copy of any file using a system call in linux, edit the

Make changes in the given C program. The given C program make a copy of any file using a system call in linux, edit the so it will make a copy of bitmap file (image.bmp) and change the beige color to purple in a new file
 Make changes in the given C program. The given C program

FILE SYSTEMS 274 le copy program, Errr checking and reporting is minimal. / / include necessary header of include #include #include #include / ANSI prototype / use a bufer size of 4096 bytes /* protection bits for output file 1 th int main(int argc, char argv): #define BUF-SIZE 4096 #define OUTPUT-MODE 0700 int main(int argc, char argvl) int in_fd, out_fd, rd_count, wt_count; char buffer BUF_SIZE]: /* syntax error if argc is not 3 / if (argc !-3) exit(1); / Open the input file and create the output file/ in-fd = open(argv[1], O_RDONLY); /* open the source file */ if (in fd #include #include #include / ANSI prototype / use a bufer size of 4096 bytes /* protection bits for output file 1 th int main(int argc, char argv): #define BUF-SIZE 4096 #define OUTPUT-MODE 0700 int main(int argc, char argvl) int in_fd, out_fd, rd_count, wt_count; char buffer BUF_SIZE]: /* syntax error if argc is not 3 / if (argc !-3) exit(1); / Open the input file and create the output file/ in-fd = open(argv[1], O_RDONLY); /* open the source file */ if (in fd

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!