strcmp (2) --- compare strings and return 1 2 or 3 for < = or > 03/23/80 _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n integer function strcmp (str1, str2) character str1 (ARB), str2 (ARB) Library: vswtlb (standard Subsystem library) _F_u_n_c_t_i_o_n 'Strcmp' is a generalized string comparison routine. The two arguments are EOS-terminated strings to be compared; the function return is 1 if 'str1' is less than 'str2' (accord- ing to the ordering of ASCII characters), 2 if 'str1' is equal to 'str2', and 3 if 'str1' is greater than 'str2'. If one string is a proper initial substring of the other, the longer string is always found to be greater. _I_m_p_l_e_m_e_n_t_a_t_i_o_n Character-at-a-time comparison loop. Function return depends on which string hit EOS first, or on ASCII ordering of character codes. _S_e_e _A_l_s_o equal (2), length (2) strcmp (2) - 1 - strcmp (2)