Question: Task 3: Improved lsal in C language As you know, ls can accept multiple arguments. Improve your code from Task 2 to provide the same
Task 3: Improved lsal in C language
As you know, ls can accept multiple arguments. Improve your code from Task 2 to provide the same flexibility in a new program called lsal2. Note that when multiple arguments are passed to ls, for directories it also prints the name of the directory before listing the files inside it.
Hint: Write your code as modular as possible to avoid duplicating code that might be reused. That way you avoid debugging same errors again and again. For example, you should put any shared functionality between lsal.c and lsal2.c (i.e., most of what Task 2 asks you to do) in a separate source file which will be linked to your lsal.o and lsal2.o code to make the executable files.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
