This is a program to mimic the working of the Unix command diff
used to display the differences in the files by comparing the files line by line. (implementation in C)
Refer : diff command
- Max Characters per line : 128
- Max Lines per file : 128
make
./diff <file1_name> <file2_name> [options]
./diff file1.txt file2.txt
The time taken by the program to compare files is less than that of the diff command for files of small sizes and nearly the same for files of large size
./diff <file1_name> <file2_name> --normal
./diff <file1_name> <file2_name> --color
./diff <file1_name> <file2_name> -s
./diff <file1_name> <file2_name> -q