[solved]-Write C Function Takes Array File Descriptors Array Size Arguments Function De Fined Argum Q39064479
• Write a C function that takes an array of file descriptors and array size as arguments. Your function should be de- fined with these arguments: file info.from.arr( int* arr , sizet size) Your function should open the file “out.txt” for writing, and write the following information for each descriptor in the argument array: – File Descriptor – Total size in bytes – Time of last modification (any format) Note: For the purposes of this assignment, you can assume that all the files that have descriptors in the array are open at the time that your function is called. Hints: The easiest approach to output is to use fopen, fprintf, and fclose. Output can be in any format you choose. There are several forms of “stat, make sure you use the correct one. Show transcribed image text • Write a C function that takes an array of file descriptors and array size as arguments. Your function should be de- fined with these arguments: file info.from.arr( int* arr , sizet size) Your function should open the file “out.txt” for writing, and write the following information for each descriptor in the argument array: – File Descriptor – Total size in bytes – Time of last modification (any format) Note: For the purposes of this assignment, you can assume that all the files that have descriptors in the array are open at the time that your function is called. Hints: The easiest approach to output is to use fopen, fprintf, and fclose. Output can be in any format you choose. There are several forms of “stat, make sure you use the correct one.
Expert Answer
Answer to • Write a C function that takes an array of file descriptors and array size as arguments. Your function should be de- … . . .
OR

