

            lscmpk (4) --- compare linked string with contiguous string  03/23/80


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 character function lscmpk (ptr, str)
                 pointer ptr
                 character str (ARB)

                 Library:  vlslb


            _F_u_n_c_t_i_o_n

                 The  linked  string  specified  by  'ptr' and the contiguous
                 string in 'str' are compared on the basis of ASCII collating
                 sequence.  Depending upon the relation that the first string
                 has to the second, a function value of '>'c, '='c,  or  '<'c
                 is returned.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 Characters  are  extracted  from  the  linked  string  using
                 'lsgetc' and compared with their corresponding  elements  in
                 'str'  until  two  unequal  characters  are  seen  or an EOS
                 character  is  encountered.   The  value  returned  is  then
                 decided from these two characters:  if one of the characters
                 is  EOS, the longer string is considered greater; if both of
                 the characters are EOS, the strings are considered equal; if
                 neither character  is  EOS,  the  string  with  the  largest
                 character is considered greater.


            _C_a_l_l_s

                 lsgetc


            _B_u_g_s

                 Locally supported.


            _S_e_e _A_l_s_o

                 lscomp (4)














            lscmpk (4)                    - 1 -                    lscmpk (4)


