memcmp
 
Syntax

         

#include "mem.h"

int memcmp( const void *buffer1, const void *buffer2, unsigned int count );

The function memcmp() compares the first count characters of buffer1 and buffer2 .

The return values are as follows:

 

ValueExplanation
less than 0buffer1 is less than buffer2
equal to 0buffer1 is equal to buffer2
greater than 0buffer1 is greater than buffer2