ActiveState Code

Recipe 576855: getcwd


getcwd

C
1
2
3
4
5
 {
        char cwd[1024] = {0};
        getcwd(cwd, 1023);
        printf("current dir %s\n", cwd);
    }

Sign in to comment