# cpct_bin2c

Script for converting binary files to C arrays

#### Usage

cpct_bin2c [file] [options]

#### Description

This script converts any given binary file into a C array containing all the bytes of the binary in hexadecimal format. This lets you include any binary file inside a C program.

The converted output is outputted to the standard output.

#### Command line options

-h | --include-header [file] | Include a header file at the top of the generated output
-an | --array-name [identifier] | Sets the identifier that will be used for the array that will be generated. G_[file] is used by default.
-b | --bytes-per-line [numbytes] | Establishes the number of bytes to write at each array line in C. 16 by default
-h | --help | Shows help information on the terminal.

Script for converting binary files to C arrays
Close