#include #include /* * Print working (current) directory */ void main(int argc, char *argv[]) { char pathname[512]; USED(argc, argv); if(getwd(pathname, sizeof(pathname)) == 0) { print("pwd: %s\n", pathname); exits(pathname); } print("%s\n", pathname); exits(0); }