Including contents of a text-file as a string in C is not that easy, esp. if it's not surrounded by quotes. One cannot simply write
static const char str[] =
#include "file"
;
and static const char str[] = "
#include "file"
";
will not work either.If you know of a better (cleaner/shorter/less-hacky) way of doing this, and w/o external scripts/bins like `xxd -i` please let me know.