home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
gnu
/
man
/
cat3
/
memcmp.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
1KB
|
67 lines
MEMCMP(3) UNIX 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). Zerolength strings are always identical.
SSEEEE AALLSSOO
bcmp(3), strcasecmp(3), strcmp(3), strcoll(3), strxfrm(3)
SSTTAANNDDAARRDDSS
The mmeemmccmmpp() function conforms to ANSI C3.1591989 (``ANSI C'').
BSD Experimental June 29, 1991 1