Question: Use onlinegdb.com and please submit a final code at the end, ( JUST ONE BIG CODE ) Write a C program myls 2 whose behavior
Use onlinegdb.com and please submit a final code at the end,JUST ONE BIG CODE
Write a C program myls whose behavior resembles that of the system command s myls must print
the names of files in the current directory in columns of equal width. my must accept the following
parameters:
$ mylsarsdirectory
Overall behavior of my is identical to that of myls described in lab
myls needs to present its output using multiple columns of the same width as shown below:
Use the hint on pMolay textbook to determine the width of the current terminal window.
Test mys using the files with names of varying length archived in this ZIP file. Use the following test
cases when running myls from the directory at the same level with dirA:
Run each of the test cases above twice:
in a relatively wide terminal window resulting in at least two rows of file names, and
in a relatively narrow terminal window resulting in at least four rows of file names.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
