TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: andrew clarke
from: Paul Edwards
date: 1996-03-10 17:33:52
subject: hexdump.c

ac> I remember fixing a bug in one of your earlier versions that caused the 
ac> file not to be fully hexdumped (it would leave out the last few bytes) in 
ac> certain instances.  It looks as though you fixed that in the OZPD9510 
ac> release though, which I used as the base for the above code.

Yeah, I fixed that bug about 2 years ago, but Bob Stout never
adopted it for reasons best known to him, so if you used 
snippets instead of ozpd, you wouldn't have got the fix.

ac> HEXDUMP.C now uses strtol() to convert the "start" and
"length" 
ac> command-line parameters to numeric values rather than atol(), as I wanted 
ac> support for hexadecimal values.  (I think it now supports octal also.)

Good idea, I've adopted that change.

ac> I've also made the output a little more readable by seperating each 
ac> hexadecimal digit with a space.  It's now displayed almost identically to  
ac> the format XTreeGold uses in its hex dumper/editor.

Hmmm, the format I used was the one provided by a VAX machine,
so I didn't adopt this.  I'll post the version I have now created.
BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.