4.4BSD/usr/share/man/cat3/memcmp.0

Compare this file to the similar file:
Show the results in this format:

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

NNAAMMEE
     mmeemmccmmpp - compare byte string

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssttrriinngg..hh>>

     _i_n_t
     mmeemmccmmpp(_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);

DDEESSCCRRIIPPTTIIOONN
     The mmeemmccmmpp() function compares byte string _b_1 against byte string _b_2.
     Both strings are assumed to be _l_e_n bytes long.

RREETTUURRNN VVAALLUUEESS
     The mmeemmccmmpp() 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.

SSEEEE AALLSSOO
     bcmp(3),  strcasecmp(3),  strcmp(3),  strcoll(3),  strxfrm(3)

SSTTAANNDDAARRDDSS
     The mmeemmccmmpp() function conforms to ANSI C X3.159-1989 (``ANSI C '').

4.4BSD                           June 4, 1993                                1