getwd(3) getwd(3)NAME getwd - gets the current working directory pathname SYNOPSIS char *getwd(pathname) char *pathname; DESCRIPTION getwd copies the absolute pathname of the current working directory to pathname and returns a pointer to the result. Maximum pathname length is PATH_MAX characters (see intro(2)). STATUS MESSAGES AND VALUES The getwd program returns zero and places a message in pathname if an error occurs. January 1992 1