An open API service indexing awesome lists of open source software.

https://github.com/grillo-0/bed

Embed files into your C applications
https://github.com/grillo-0/bed

bed c embed files

Last synced: 6 months ago
JSON representation

Embed files into your C applications

Awesome Lists containing this project

README

          

# bed

Embed files into your C applications

This was inspired by one of the [Tsoding](https://github.com/tsoding)
livestreams about [muzializer](https://github.com/tsoding/musializer) where he
creates a application with the same ideia.

## Usage

First you run the bed command to generate the `.c` file

```console
$ ./bed ... > 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.

```console
$ ./bed -p ... > resource.c
```

## How to Build

```console
$ make
```

## How to Test

```console
$ make test
```