Contact: aviboots(AT)netvision.net.il
43,939 questions
57,344 answers
573 users
#include <stdio.h> #include <unistd.h> #define PATHLEN 128 int main() { char path[PATHLEN]; getcwd(path, PATHLEN); printf("%s", path); return 0; } /* run: /home/project */