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.
You can install a development version using Mercurial
hg clone http://hg.malikania.fr/bcc
Build using standard POSIX make tools, see INSTALL.md for more details.
make
make install
See available manual pages:
Example: convert a image for embedding.
bcc -scu mario.png mario > mario.h
Now, you can include mario.h file and use mario
C array, sizeof (mario)
is also possible.