/binarydump

Command line utility that displays file contents in binary.

Primary LanguageC

Simple command line utility that displays file contents in binary.
Example output:

0x0	01101000   01100101   01101100   01101100   
0x4	01101111   00100000   01110111   01101111   
0x8	01110010   01101100   01100100   00100000
0xC

By default, hexadecimal offset addresses are printed in the left column.
The '-r' option disables address printing, and removes the whitespace between columns.
The '-n' option sets the number of bytes printed per line.
If no file is specified, standard input is read.