| |    | 85019 packages online | 
 | 
|  | 
| 
 | 
| dev/c/cmp.lha |  |  | | No screenshot available | 
| Short: | V1.0, compare 2 binary file (with source) |  | Author: | pomarede  isty-info.uvsq.fr |  | Uploader: | Nicolas Pomarede (pomarede isty-info uvsq fr) |  | Type: | dev/c |  | Architecture: | m68k-amigaos |  | Date: | 1997-02-18 |  
| Download: | dev/c/cmp.lha - View contents |  | Readme: | dev/c/cmp.readme |  | Downloads: | 1841 |  
 |  | 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
 |  | 
 Contents of dev/c/cmp.lha
  PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 7410   11724  63.2% -lh5- ca0e Feb  3  1997 cmp
[generic]                 1556    4782  32.5% -lh5- 39ca Feb  3  1997 cmp.c
[generic]                  649    1191  54.5% -lh5- 0d3b Feb  3  1997 cmp.readme
[generic]                   40      47  85.1% -lh5- 231c Feb  3  1997 scoptions
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files    9655   17744  54.4%            Feb 18  1997
 | 
 |  | 
|  | 
| Page generated in 0.008 seconds | 
| Aminet © 1992-2024 Urban 
Müller and the Aminet team.
Aminet contact address: <aminet  aminet net> |