1 #include <stdio.h> 2 #include <unistd.h> 3 4 int 5 main (int argc, char **argv) 6 { 7 char buffer[1024]; 8 9 fprintf(stdout, "stdout: %s\n", getcwd(buffer, 1024)); 10 fprintf(stderr, "stderr: %s\n", getcwd(buffer, 1024)); 11 12 return 0; 13 } 14