/* * pwd.c * * Created on: May 3, 2011 * Author: bertrand */ #include <unistd.h> #include <stdio.h> #define PATHSIZE 1024 int main(int argc, char **argv[]) { char pwd[PATHSIZE]; getcwd(pwd, PATHSIZE); printf("%s/n",pwd); return 0; }