Motivation examples:
int strcmp_memcmp() {
char buf[12]; return strcmp(buf, "key") == 0;
}
int strcmp_memcmp2() {
char buf[12]; return strcmp(buf, "key") != 0;
}
int strncmp_memcmp() {
char buf[12]; return strncmp(buf, "key", 3) == 0;
}
can be turned to memcmp.
See test file for more cases.
Not sure why this check is relevant; memcmp should return the same value as strcmp.