gcdir$ (6) --- get current directory pathname 01/05/83 _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n integer function gcdir$ (path) character path (ARB) Library: vswtlb (standard Subsystem library) _F_u_n_c_t_i_o_n 'Gcdir$' is used to determine the full pathname of the current working directory. The sole argument is a character array to receive the pathname. The function return is OK if the name could be found, ERR otherwise. _I_m_p_l_e_m_e_n_t_a_t_i_o_n 'Gcdir$' first obtains the treename of the current directory using the Primos routine GPATH$. This treename is then unpacked by 'ptoc' and passed to 'mkpa$', which converts it into a SWT pathname. _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d path _C_a_l_l_s mkpa$, ptoc, Primos gpath$ _B_u_g_s Be warned that because of Prime's password protection scheme, it is not always possible to obtain a pathname that can later be used to attach to the home directory with the same access rights. _S_e_e _A_l_s_o mktr$ (6), mkpa$ (6), follow (2), getto (2) gcdir$ (6) - 1 - gcdir$ (6)