HEXDUMP - Hexadecimal file dump, in C

HEXDUMP is a simple program to print the contents of a file, byte by byte, in hexadecimal format. This sort of information can be useful when determining the format of a file, checking for byte-swapping, or other common tasks.

Sample output of the program looks like this:


        HEXDUMP: Hexadecimal dump of file: box.3ds.

           Address                   Hexadecimal values                  Printable
        --------------  -----------------------------------------------  ----------------

            0 00000000  4d 4d 53 02 00 00 02 00 0a 00 00 00 03 00 00 00  MMS.............
           16 00000010  3d 3d 68 01 00 00 3e 3d 0a 00 00 00 03 00 00 00  ==h...>=........
           32 00000020  00 01 0a 00 00 00 00 00 80 3f 00 40 4e 01 00 00  .........?.@N...
           48 00000030  42 6f 78 30 31 00 00 41 42 01 00 00 10 41 68 00  Box01..AB....Ah.
           ...
      

Reference:
Howard Burdick,
Digital Imaging, Theory and Applications,
McGraw Hill, 1997, page 219.

Files you may copy include:

Back to the C software page.


Last revised on 08 March 2001.