Write a C function with the following prototype: int copyFile (char *filenamel, char filename2); Given the names of a destination and of a source file (respectively, filenamel and filename2), the...


Write a C function with the following prototype:<br>int copyFile (char *filenamel, char filename2);<br>Given the names of a destination and of a source file (respectively, filenamel and filename2), the function should copy the content of the source<br>into the destination file, after transforming the alphabetic characters from lowercase to uppercase and vice-versa (all the other characters are copied<br>as they are). In case the copy operation is not successful, the function should return the value -1. Otherwise, it should return the total number of<br>characters that were successfully copied.<br>

Extracted text: Write a C function with the following prototype: int copyFile (char *filenamel, char filename2); Given the names of a destination and of a source file (respectively, filenamel and filename2), the function should copy the content of the source into the destination file, after transforming the alphabetic characters from lowercase to uppercase and vice-versa (all the other characters are copied as they are). In case the copy operation is not successful, the function should return the value -1. Otherwise, it should return the total number of characters that were successfully copied.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here