home *** CD-ROM | disk | FTP | other *** search
- Short: V1.0, compare 2 binary file (with source)
- Author: Nicolas Pomarede (pomarede@isty-info.uvsq.fr)
- Uploader: Nicolas Pomarede (pomarede@isty-info.uvsq.fr)
- Type: dev/c
-
- This small tool compares 2 binary files and display the position of
- differing bytes.
- The functionnalities are rather limited, but it's fast.
- I coded this small tool in a hurry because I needed a program
- to compare many binary files, that could be used as a shell command
- (no window or things like that) and that would return a simple
- value depending on the result of the comparison (useful in scripts).
- By default, the differing positions are printed, but this can be
- turned off with the '-q' switch.
-
- Files are read 20000 bytes at a time, and there's no limitation on
- their length.
- If files don't have the same length, only the common parts are compared.
-
- After a comparison, the return codes are:
- 0 files are identical (DOS OK)
- 5 files are different (DOS WARN)
- 10 a system error occured (no memory, error reading, ...) (DOS ERROR)
- These codes can then be used in an 'IF' test.
-
-
- Requirements:
- - any AmigaDOS (tested on 1.3), any CPU.
- - 40 Kb of free mem.
-
-
- Version 1.0, 03/02/1997 by Nicolas Pomarede
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 11724 7410 36.7% 03-Feb-97 14:58:36 cmp
- 4782 1556 67.4% 03-Feb-97 15:23:58 cmp.c
- 1191 649 45.5% 03-Feb-97 15:22:14 cmp.readme
- 47 40 14.8% 03-Feb-97 14:57:28 SCOPTIONS
- -------- ------- ----- --------- --------
- 17744 9655 45.5% 18-Feb-97 00:59:08 4 files
-