This commit is contained in:
Josh Ashton
2023-08-03 10:52:40 -06:00
parent fbf5b4308d
commit c43e89cff3
8 changed files with 37 additions and 70 deletions
+3 -1
View File
@@ -42,7 +42,9 @@ void validateDir(char input[]) {
printf("cwd: %s\n", cwd);
}
chdir("..");
printf("cwd: %s", cwd);
if(getcwd(cwd, sizeof(cwd)) != NULL) {
printf("cwd: %s\n", cwd);
}
}
}