

            itoc (2) --- convert integer to character string         03/23/80


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 integer function itoc (int, str, size)
                 integer int, size
                 character str (size)

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Itoc'  converts the integer given as its first parameter to
                 a character string that is returned as its second parameter.
                 The last 'size' - 1 digits of the number, and no  more,  are
                 returned.   The  number  is  left  justified, with a leading
                 minus sign if the number is negative.  The  function  return
                 is the length of the character string returned.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 'Itoc'  performs  a  rather  standard  conversion  by  using
                 modular arithmetic to fetch one digit at  a  time  from  the
                 integer  value  supplied.  The character string generated is
                 placed backward in the receiving field, then  reversed  just
                 before exit.


            _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d

                 str


            _S_e_e _A_l_s_o

                 other conversion routines ('cto?*' and '?*toc') (2)






















            itoc (2)                      - 1 -                      itoc (2)


