stat() fails!!! what can i do?

Hi all,

I can not understand why my stat() function fails all the time when function tries to go recursevly. Someone suggested that it might be poiter problem. Please, look up my code at: www.donnelly.cc.ks.us/readdir_test.c. How can i solve this problem? Any suggestion are welcome!

Thank you all

Check that link. It doesn't work for me.

Well it does for me though :stuck_out_tongue:

Never mind i fixed the problem,
Thank you all

Hello Solvman,

I have written a C program making system call to stat(). If you don't mind, i'd like to compare my code with yours. Do you still have the link to the code?

Thanks,

Rachael