1.TH MEMCMP 3 scc\-VERSION2.SH NAME3memcmp - compare two memory blocks byte by byte4.SH SYNOPSIS5#include <string.h>67int memcmp (const void *s1, const void *s2, size_t n)8.SH DESCRIPTION9The10.BR memcmp ()11function compares the first12.I n13bytes of the memory blocks pointed to by14.I s115and16.IR s2 .17The comparison is performed as if each byte were unsigned char.18.SH RETURN VALUE19A positive integer is returned if20.I s121is lexicographically greater than22.IR s2 ,23zero if the two blocks are equal,24and a negative integer if25.I s126is lexicographically less than27.IR s2 .28.SH STANDARDS29ISO/IEC 9899:1999 Section 7.21.4.1