memcmp [C++ Reference]
Keywords: c,string,memcmp
Date: 2008-10-14T15:42:02-0700

[[memcmp]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## memcmp

Syntax:

        #include <cstring>
        int memcmp( const void *buffer1, const void *buffer2, size_t count );

The function memcmp() compares the first count characters of buffer1 and buffer2. The return values are as follows:

Value | Explanation
--- | ---
less than 0 | buffer1 is less than buffer2
equal to 0 | buffer1 is equal to buffer2
greater than 0 | buffer1 is greater than buffer2

Related Topics: memchr, memcpy, memset, strcmp

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •