GETWD(3) UNIX Programmer's Manual GETWD(3) NAME getwd - get current working directory pathname SYNOPSIS char *getwd(pathname) char *pathname; DESCRIPTION _G_e_t_w_d copies the absolute pathname of the current working directory to _p_a_t_h_n_a_m_e and returns a pointer to the result. DIAGNOSTICS _G_e_t_w_d returns NULL and places a message in _p_a_t_h_n_a_m_e if an error occurs. BUGS _G_e_t_w_d may fail to return to the current directory if an error occurs. Printed 5/27/83 1