Menu

dk-bin2c manual

Dirk Krause
← Previous ↑ Home → Next

dk-bin2c — Convert binary data → C unsigned char array

Synopsis

dk-bin2c [options] [file(s)]

Description

The program converts binary input data from standard input or a specified file to C source code (array of literal unsigned char values in hexadecimal or octal notation).

Options

Option Purpose
-o
--octal
Octal output instead of hexadecimal output.
-i indent
--indent=indent
Line indent, number of spaces at start of each line. Default: 0.
-s spaces
--spaces=spaces
Number of spaces between elements in a line. Default: 0.
-b bytes
--bytes-per-line=bytes
Number of byte representations in each text line. Default: 15.
--help Show short help text.
--manual Show manual.
--version Show version number.
--license Show license terms.

Exit status

The program returns exit status code 0 on success, all other status codes indicate an error.

Environment

  • VIM, VIMRUNTIME
    On Windows the program checks for the presence of these variables to detect whether or not it is run from inside vim. When run from within vim diagnostic messages are suppressed to avoid mixing 8 bit text from normal output with 16 bit text from diagnostics.
← Previous ↑ Home → Next

Related

Wiki: dk-bin2c

MongoDB Logo MongoDB