ssttrrnnccmmpp() -- String Function (libc)

Compare two strings
#iinncclluuddee <ssttrriinngg.hh>
iinntt ssttrrnnccmmpp(_s_t_r_i_n_g_1, _s_t_r_i_n_g_2, _n)
cchhaarr *_s_t_r_i_n_g_1, *_s_t_r_i_n_g_2; uunnssiiggnneedd _n;

ssttrrnnccmmpp()  compares lexicographically  the first  _n  bytes of  _s_t_r_i_n_g_1 with
_s_t_r_i_n_g_2.  Comparison  ends when  _n  bytes  have been  compared,  or a  null
character encountered,  whichever occurs first.  ssttrrnnccmmpp()  returns zero if
the  strings are  identical, returns  a  number less  than zero  if _s_t_r_i_n_g_1
occurs earlier  alphabetically than _s_t_r_i_n_g_2,  and returns a  number greater
than zero if it occurs later.  This routine is compatible with the ordering
routine needed by qqssoorrtt().

_E_x_a_m_p_l_e
For an example of this function, see the entry for ssttrrnnccppyy().

_S_e_e _A_l_s_o
lliibbcc, ssttrrccmmpp(), ssttrriinngg.hh
ANSI Standard, section 7.11.4.4
POSIX Standard, section 8.1
