.TH GETWD 3 .UC .SH NAME getwd \- get current working directory pathname .SH SYNOPSIS .nf .B char *getwd(pathname) .B char *pathname; .fi .SH DESCRIPTION .I Getwd copies the absolute pathname of the current working directory to .I pathname and returns a pointer to the result. .SH DIAGNOSTICS .I Getwd returns NULL and places a message in .I pathname if an error occurs. .SH BUGS .I Getwd may fail to return to the current directory if an error occurs.