bcc - binary to C/C++ arrays converter

The bcc tools converts any input files into C or C++ byte arrays usable for embedding directly into the source code.

It is inspired by the xxd tool but offer some flexibility.

Download

Official releases

Development version

You can install a development version using Mercurial

hg clone http://hg.malikania.fr/bcc

Installation

Build using standard POSIX make tools, see INSTALL.md for more details.

make
make install

Documentation

See available manual pages:

Usage

Example: convert a image for embedding.

bcc -sc mario.png mario > mario.h

Now, you can include mario.h file and use mario C array, sizeof (mario) is also possible.