Write a C program that does a whitespace insensitive comparison of contents of two files. The program exits with code 0 if the files are identical, except possibly for differences in whitespace. It exits with code 1 if the files are different, ignoring whitespace. It exits with code 2 if any kind of error occurs. It never prints to stdout.
Details:
bash$ ./ex3 ex3.c ex3.c bash$ echo $? 0 bash$ if ./ex3 ex3.c ex3.c; then echo Match; else echo No match; fi Match bash$ if ./ex3 ex3.c ex3Temp.c; then echo Match; else echo No match; fi No match bash$ if ./ex3 ex3.c noSuchFile; then echo Match; else echo No match; fi noSuchFile: No such file or directory No match bash$ ./ex3 Usage: ./ex3 file file Compares two files in a whitespace insensitive way.We care about the exit codes (0, 1, or 2), but not about the details of the error messages your code might print.