Embed files into your C applications
This was inspired by one of the Tsoding livestreams about muzializer where he creates a application with the same ideia.
First you run the bed command to generate the .c
file
$ ./bed <files>... > resource.c
Next, you use the bed_get()
function, test.c
is a example on how to do it.
You can optionally add an prefix to the function with '-p' flag, test_prefix.c shows how to use this on code.
$ ./bed -p <prefix> <files>... > resource.c
$ make
$ make test