4.3. memcmp
int memcmp( const void *v1, const void *v2, size_t size);memcmp compares the first `size' characters of v1 with v2, and returns as with strcmp.
For example, to compare two arrays of double:
double x[NMAX], y[NMAX];
int n; /* number of elements used */
...
if( memcmp( x, y, n * sizeof(double)) == 0)
do_something; /* arrays contain the same data */
else
do_something_else;