home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / c / cmp.lha / cmp.readme < prev    next >
Encoding:
Text File  |  1997-02-03  |  1.2 KB  |  33 lines

  1. Short:    v1.0, compare 2 binary file (with source)
  2. Author:   Nicolas Pomarede (pomarede@isty-info.uvsq.fr)
  3. Uploader: Nicolas Pomarede (pomarede@isty-info.uvsq.fr)
  4. Type:     dev/c
  5.  
  6. This small tool compares 2 binary files and display the position of
  7. differing bytes.
  8. The functionnalities are rather limited, but it's fast.
  9. I coded this small tool in a hurry because I needed a program
  10. to compare many binary files, that could be used as a shell command
  11. (no window or things like that) and that would return a simple
  12. value depending on the result of the comparison (useful in scripts).
  13. By default, the differing positions are printed, but this can be
  14. turned off with the '-q' switch.
  15.  
  16. Files are read 20000 bytes at a time, and there's no limitation on
  17. their length.
  18. If files don't have the same length, only the common parts are compared.
  19.  
  20. After a comparison, the return codes are:
  21.      0 files are identical (DOS OK)
  22.      5 files are different (DOS WARN)
  23.     10 a system error occured (no memory, error reading, ...) (DOS ERROR)
  24. These codes can then be used in an 'IF' test.
  25.  
  26.  
  27. Requirements:
  28.     - any AmigaDOS (tested on 1.3), any CPU.
  29.     - 40 Kb of free mem.
  30.  
  31.  
  32. Version 1.0, 03/02/1997 by Nicolas Pomarede
  33.