memcmp is a function available in the string.h library.
Official Definition
The
memcmp()
function compares the first n bytes (each interpreted as unsigned char) of the memory areass1
ands2
.
Syntax of usage
#include <string.h>
int memcmp(const void *s1, const void *s2, size_t n);
Source