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 myls2 whose behavior resembles that of the system command 1 s. myls 2 must print
the names of files in the current directory in columns of equal width. my 1.s2 must accept the following
parameters:
$ myls2[-ars][directory]
Overall behavior of my 1s2 is identical to that of myls 1 described in lab5.
myl.s2 needs to present its output using multiple columns of the same width as shown below:
Use the hint on p.164(Molay textbook) to determine the width of the current terminal window.
Test my1s2 using the files with names of varying length archived in this ZIP file. Use the following test
cases when running myls 1 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.
 Use onlinegdb.com and please submit a final code at the end,(JUST

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!