Help needed to code same like a ls-lR in unix

General discussion on technical and managerial topics
no avatar
nawang81
 
Posts: 1
Joined: Fri Jan 01, 2010 10:56 pm

Help needed to code same like a ls-lR in unix

by nawang81 » Fri Jan 01, 2010 11:06 pm

Task
You are required to write a C program under linux that produces the same output as

ls –lR <pathname>.

without the group gid of each file.

Your program must either have the following program structure, or if you have chosen a different structure, a detailed explanation of why you have chosen this structure.




A note on programming style
Programs should be decomposed into functions, and a function should do only one thing

Print more file details. the function calling hierarchy should be
main(int argc, char **argv) //only checks arguments
recls(“.â€

Return to General Discussion

cron