scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

memcmp.3 (728B)


      1 .TH MEMCMP 3
      2 .SH NAME
      3 memcmp - compare bytes in memory
      4 .SH SYNOPSIS
      5 #include <string.h>
      6 
      7 int memcmp (const void *s1, const void *s2, size_t n)
      8 .SH DESCRIPTION
      9 The
     10 .BR memcmp ()
     11 function compares the first
     12 .I n
     13 bytes of the object pointed to by
     14 .I s1
     15 to the first
     16 .I n
     17 bytes of the object pointed to by
     18 .IR s2 .
     19 The value returned shall be used to determine
     20 if an object is lexicographically greater than,
     21 lesser than or equal to another object.
     22 .SH RETURN VALUE
     23 The
     24 .BR memcmp ()
     25 function shall return an integer greater than,
     26 equal to, or lesser than 0,
     27 if the object pointed to by
     28 .I s1
     29 is greater than,
     30 equal to, or lesser than the object pointed to by
     31 .IR s2 ,
     32 respectively.
     33 .SH STANDARDS
     34 ISO/IEC 9899:1999 Section 7.21.4.1