HEX 1.2
- (by Eric S. Raymond <esr@snark.thyrsus.com>)
+ (by Eric S. Raymond <esr@thyrsus.com>)
This hex dumper was born because
If any of these describes your universe, you'll like it too. The format
resembles a CP/M or MS/DOS DEBUG dump screen. There is nothing UNIX-specific
-in the source, it should work OK under any C with a stdio.h library.
+in the source, it should work OK under any C with a stdio.h library. And,
+in fact, I'm told it has been used under Windows NT.
You can find updates and other resources at:
exit(0);
}
}
- else if ((infile = fopen(*argv, "r")) == NULL)
+ else if ((infile = fopen(*argv, "rb")) == NULL)
{
(void) fprintf(stderr, "hex: cannot open %s\n", *argv);
exit(1);
.PP
If the command-line arguments include two or more filenames (with -
being regarded as a `filename' for standard input), hex will emit a
-one-line header giving the name the file in front of each input file.
+one-line header giving the name of
+the file in front of each input file.
.PP
The -s option expects a start offset, optionally followed by a
comma-separated count. Each of these should be a decimal or hex integer
The definition of EBCDIC used is IBM's ASCII-compatible 96-character
SCS set used with Systems Network Architecture (SNA).
.SH AUTHOR
-Eric S. Raymond <esr@snark.thyrsus.com>. See my home page at
-http://www.tuxedo.org/~esr for updates and other resources.
+Eric S. Raymond <esr@thyrsus.com>. See my home page at
+http://www.tuxedo.org/~esr for updates and related resources.
+
+