PLEASE HELP ME, I WANT TO WRITE A C PROGRAM TO EMULATE THE
Is -L -A -F UNIX COMMAND THAT WILL DISPLAY ALL FILES IN THE CURRENT DIRECTORY INCLUDING INVISIBLE FILES, THEIR ACCESS PRIVILEGES, AS WELL AS IDENTIFYING WHICH ARE FILES AND WHICH ARE SUB-DIRECTORIES. but i dont want to use exec ls command
here is the program using execl
main()
{ printf(``Files in Directory are:n'');
execl(`/bin/ls'',``ls'', ``-l'',0);
}