2 // minimal tool to compare two binaries
7 int main(int argc, char *argv[])
13 f1 = fopen(argv[1], "rb");
14 f2 = fopen(argv[2], "rb");
15 if ((f1 == NULL) || (f2 == NULL)) {
19 if (feof(f1) && feof(f2)) {
21 } else if (feof(f1) || feof(f2)) {
24 if (fgetc(f1) != fgetc(f2)) {