Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 686 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 686 Bytes

bed

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.

Usage

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

How to Build

$ make

How to Test

$ make test