Hey, I am a new comer to C and do a exercise( I want to program a little C app just like DOS Command 'dir' ).
As the first step I must know how to get the current working path( like the return value of Linux command 'pwd' ).
I have searched for it for a little time. Help!