

            chkstr (2) --- check a string for printable characters   03/22/82


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 integer function chkstr (str, len)
                 character str (ARB)
                 integer len

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Chkstr'  looks to see if the characters in a string are all
                 printable.  If an EOS character is  encountered  before  any
                 unprintable  characters  are  encountered  and  before 'len'
                 characters are examined, 'chkstr' returns YES; otherwise, it
                 returns NO.

                 If 'len' is less than or equal to zero, 'chkstr' returns NO.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 'Chkstr' starts examining the string at the first character;
                 as long as the character is not an EOS and is printable  and
                 'len'  characters have not been examined, 'chkstr' continues
                 to examine the remainder of the string.  When an unprintable
                 or EOS character is found, or when 'len' characters has been
                 examined,  'chkstr'  quits;  it  returns  YES  if   it   has
                 encountered an EOS character, and NO otherwise.


            _S_e_e _A_l_s_o

                 ctomn (2), mntoc (2)
























            chkstr (2)                    - 1 -                    chkstr (2)


