

            locate (2) --- look for character in character class     05/29/82


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 integer function locate (c, pat, offset)
                 character c, pat (MAXPAT)
                 integer offset

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Locate'  returns  YES  if  'c' is a member of the character
                 class at 'pat(offset)', NO otherwise.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 A character class is stored as a size, followed by a  vector
                 of  characters in the class.  'Locate' simply checks all the
                 characters in the vector;  if  'c'  matches  one,  then  the
                 return value is YES.


            _S_e_e _A_l_s_o

                 makpat (2), omatch (2), amatch (2)
































            locate (2)                    - 1 -                    locate (2)


