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
- Host: GitHub
- URL: https://github.com/grillo-0/bed
- Owner: Grillo-0
- License: mpl-2.0
- Created: 2024-03-21T23:14:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T13:26:11.000Z (almost 2 years ago)
- Last Synced: 2025-04-19T08:28:42.680Z (9 months ago)
- Topics: bed, c, embed, files
- Language: C
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```