blob: 7288c41fd3ec4e4278e6dcb3d87713006bf23b95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
bin2c
-----
Converts files to a C char array ready to be #include'ed into your source code a la C23's #embed.
See: https://cabin.digital/log/c89_embed.html
or http://retro.cabin.digital/log/c89_embed.html
See example/ for, well, example.
Build: cc bin2c.c -o bin2c
Install: idk put it in your $PATH
Usage: bin2c [filename]
If filename is empty will read from stdin and outout to stdout on EOF.
Otherwise will create filename.h and write into it.
Bugs: https://cabin.digital/whoami.html#contact
(http://retro.cabin.digital/whoami.html#contact)
|