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:
exam
Simply opening and reading directories does not change the current working directory. However, changing directory in your program will.
for reference,
#include
#include
int main() {
char cwd[1024];
chdir("/path/to/change/directory/to");
getcwd(cwd, sizeof(cwd));
printf("Current working dir: %s\n", cwd);
}