Mercurial > bcc
annotate README.md @ 22:d98f2c485ca3 default tip @
misc: update copyright years
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 01 Feb 2023 12:28:43 +0100 |
parents | 6934cc306ac3 |
children |
rev | line source |
---|---|
0 | 1 bcc |
2 === | |
3 | |
4 Simple tool to convert any file into a C or C++ array for direct inclusion into | |
5 the source code. | |
6 | |
18 | 7 Note: C23 introduced the `#embed` feature which can be used rather than this |
8 utility unless your toolchain doesn't support it. | |
9 | |
0 | 10 Quick usage |
11 ----------- | |
12 | |
13 Example: convert a image for embedding. | |
14 | |
3
b91e030a2040
bcc: generates only unsigned arrays
David Demelier <markand@malikania.fr>
parents:
0
diff
changeset
|
15 bcc -sc mario.png mario > mario.h |
0 | 16 |
17 Now, you can include mario.h file and use `mario` C array, `sizeof (mario)` is | |
18 also possible. | |
19 | |
20 Documentation | |
21 ------------- | |
22 | |
23 See bcc(1) manual page. | |
24 | |
25 Author | |
26 ------ | |
27 | |
28 David Demelier <markand@malikania.fr> |