I\'d like to know if it is somehow possible to run system("pwd") on the current DIR. So for example let\'s have this folder structure:
system("pwd")
exam
You can use chdir(2) to change dir from C, then system("pwd"); will give you what ever directory you chdir'ed to.
system("pwd");
chdir
The C-equvivalent of the pwd-command is getcwd(3).
pwd