recursive directory listing help
i am trying to design and write a C program that carries out a recursive directory listing, functionally similar to the Unix "ls -lR". This C program will use at least the following system calls, opendir, chdir, readdir, and stat.
A fairly crude version of doing this would be
but i am looking to do this in a more complex way, any help would be greatly recieved
file recls in your home directory contains:
for I in * do
if test -d $I