
MEMCMP(3)                  UNIX Programmer's Manual                  MEMCMP(3)

NNAAMMEE
     mmeemmccmmpp - compare byte string

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssttrriinngg..hh>>

     _i_n_t
     mmeemmccmmpp(_c_o_n_s_t _v_o_i_d _*_b_1, _c_o_n_s_t _v_o_i_d _*_b_2, _s_i_z_e___t _l_e_n)

DDEESSCCRRIIPPTTIIOONN
     The mmeemmccmmpp() function compares byte string _b_1 against byte string _b_2.
     Both strings are assumed to be _l_e_n bytes long.

RREETTUURRNN VVAALLUUEESS
     The mmeemmccmmpp() function returns zero if the the two strings are identical,
     otherwise returns the difference between the first two differing bytes
     (treated as unsigned char values, so that `\200' is greater than `\0',
     for example).  Zero-length strings are always identical.

SSEEEE AALLSSOO
     bcmp(3),  strcasecmp(3),  strcmp(3),  strcoll(3),  strxfrm(3)

SSTTAANNDDAARRDDSS
     The mmeemmccmmpp() function conforms to ANSI C3.159-1989 (``ANSI C'').

BSD Experimental                 June 29, 1991                               1





































