getwd(3)
NAME
getwd − get current working directory pathname
SYNTAX
char *getwd(pathname)
char *pathname;
DESCRIPTION
The getwd subroutine copies the absolute pathname of the current working directory to pathname and returns a pointer to the result.
RESTRICTIONS
The getwd may fail to return to the current directory if an error occurs.
DIAGNOSTICS
Returns NULL and places a message in pathname if an error occurs.