C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
memcmp, _fmemcmp, _memicmp, _fmemicmp
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The memcmp and _memicmp functions compare the first <count> bytes
     of <buf1> and <buf2> and return a value indicating their
     relationship, as follows:
 
     Value     Meaning
 
     < 0       <buf1> less than <buf2>
     = 0       <buf1> identical to <buf2>
     > 0       <buf1> greater than <buf2>
 
     The _fmemcmp and _fmemicmp functions are model-independent (large
     model) forms of the memcmp and _memicmp functions. The _f... form
     can be called from any point in the program.
 
     The _memicmp and _fmemicmp functions are the case-insensitive
     versions of memcmp and _fmemcmp.
 
     There is a semantic difference between the function version of
     memcmp and its intrinsic version. The function version supports
     huge pointers in compact- and large-model programs, but the
     intrinsic version does not.
 
     Return Value
 
     These functions return an integer value, as described above.
                                    -♦-