Grillo-0 / bed

Embed files into your C applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Embed files into your C applications

License:Mozilla Public License 2.0


Languages

Language:C 93.2%Language:Makefile 6.8%