

            esc (2) --- map substring into escaped character if appropriate  05/29/82


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 character function esc (array, i)
                 character array (ARB)
                 integer i

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Esc' examines the string 'array' at character position 'i'.
                 If  there  is  an escape character ("@") at this point, then
                 the next character in the array is examined.   If  it  is  a
                 letter  "n",  the  function return is the character NEWLINE.
                 If it is a letter "t", the function return is the  character
                 TAB.   If  the  character  is neither "n" nor "t", or if the
                 escape character was not present, the function return is the
                 character itself.  In all cases, 'i' is incremented to point
                 to the next unexamined character in the string.


            _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d

                 i


            _B_u_g_s

                 Should probably handle "b" for  backspace,  arbitrary  octal
                 and hex character constants, and a few other things.



























            esc (2)                       - 1 -                       esc (2)


