The Pragmatic Addict · Apr 12, 2024
Store static binary data in your C program
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
There are many ways to skin this cat. Of all of them xxd is my favorite because it is the easiest to port to various platforms. xxd This little utility comes from the same makers as vim . It can be found in most, if not all linux distros. This program will convert a source file into a hex dump, even better it will format it to be C compatible. I use the output to write into a .h file for inclusion…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.