README.md

Wed, 21 Oct 2020 15:27:50 +0200

author
David Demelier <markand@malikania.fr>
date
Wed, 21 Oct 2020 15:27:50 +0200
changeset 0
e5fc6565dce0
child 3
b91e030a2040
permissions
-rw-r--r--

misc: initial import

0
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 bcc
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 ===
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
3
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 Simple tool to convert any file into a C or C++ array for direct inclusion into
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 the source code.
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
6
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 Quick usage
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 -----------
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
9
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 Example: convert a image for embedding.
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
11
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 bcc -scu mario.png mario > mario.h
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
13
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 Now, you can include mario.h file and use `mario` C array, `sizeof (mario)` is
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 also possible.
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
16
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
17 Documentation
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 -------------
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
19
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 See bcc(1) manual page.
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
21
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 Author
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 ------
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
24
e5fc6565dce0 misc: initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 David Demelier <markand@malikania.fr>

mercurial