Question: Question #3: C Programming [20 minutes, 20 points each (A) Write only a single C function named Copy that takes as parameters two file names

Question #3: C Programming [20 minutes, 20 points each (A) Write only a single C function named Copy that takes as parameters two file names called Source and Destination You can assume that the file names might have paths. You can also assume that the files are text files. Your function will copy the file from Source into Destination. (B) Write a C program that asks the user for two strings. The first string is a file extension, like .c or txt, the user can enter anything they like. The second string the user enters in the path to a destination directory. Your program must copy, using what you wrote in (A) above, all the files in the current directory matching the input extension into the destination directory provided by the user. This copy operation occurs only if the file does not already exist in that destination directory. Your C program is permitted to use the system0 function but you must use your solution from (A) to actually copy the files. Remember that part marks are given if you have trouble writing the entire thing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
