Sloan Anderson Sloan Anderson - 12 days ago 5
C Question

Can't find ls -l source code

I am currently writing a C program in which I need to recreate ls and a few of its options. I have no idea where to start when it comes with -l. I am looking around for the source code but I can't seem to find anything. Any help pointing me in the right direction to recreating -l would be very helpful.

Answer

You can find source code of many GNU commands here : http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=tree;f=src;h=df809d8aabc8c9207166f3f3f1e814cc62560c8d;hb=master, including ls.
Hope this help !

Comments