Question
Write down a C program 'myls' that functions like unix command 'ls'.
Purposely, 'myls' is a program that displays file list under the current listing. The file list is displayed in dissimilar format as commanded by dissimilar flags of-
-F: File names are displayed in 5 columns. Each of them is marked according to type of file of it. Only following 3 types are necessary-
'*': for regular executables.
'/': for directories.
'@': for symbolic link.
-l: File names are displayed a row each. Full I-node info are displayed in way alike to "ls -l" does. However, path as displayed by "ls -l" can be omitted.