GETWD(3) 1986 GETWD(3) NNAAMMEE getwd - get current working directory pathname SSYYNNOOPPSSIISS cchhaarr **ggeettwwdd((ppaatthhnnaammee)) cchhaarr **ppaatthhnnaammee;; DDEESSCCRRIIPPTTIIOONN _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. LLIIMMIITTAATTIIOONNSS Maximum pathname length is MAXPATHLEN characters (1024), as defined in <_s_y_s/_p_a_r_a_m._h>. DDIIAAGGNNOOSSTTIICCSS _G_e_t_w_d returns zero and places a message in _p_a_t_h_n_a_m_e if an error occurs. Printed 7/27/90 May 1