Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- char cwd[1024];
- if (getcwd(cwd, sizeof(cwd)) != NULL)
- fprintf(stdout, "Current working dir: %s\n", cwd);
- else
- perror("getcwd() error");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement