The interactive file manager requires Javascript. Please enable it or use sftp or scp.
You may still browse the files here.
| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| readme.txt | 2015-04-09 | 1.8 kB | |
| bin2c-1.1.zip | 2015-04-09 | 14.0 kB | |
| Totals: 2 Items | 15.8 kB | 339 | |
* bin2c 1.1
bin2c is a simple commandline utility that generates C source files from binary files. It can be used to embed external files into C or C++ programs.
Visit sourceforge.net/projects/bin2c to for new versions.
* Changes
bin2c 1.1 adds file information tables and fixes a few bugs and compiler warnings.
* License
To the extent possible under law, authors have waived all copyright and related or neighboring rights to bin2c. In other words, bin2c is public domain program, you can do whatever you want to do with it.
* Compilation
bin2c is a standard C program that you can compile with your favorite C compiler. A ready to run Windows executable compiled with mingw cross-compiler is included in the package.
* Usage
bin2c [OPTION...] FILE [FILE...]
Options:
-d, --header <file name> Name a header file (A header file will not be created unless explicitly named)
-h, --help Print this command line help and exit immediately
-o, --output <file name> Name an output file
-m, --macro Create the size definition as a macro instead of a const
-n, --name <symbol name> Name the symbol to be defined
-t, --table <symbol name> Create file information table with original file names
-v, --version Print version information and exit immediately
Examples:
bin2c -o foo.h bar.bin Create 'foo.h' from the contents of 'bar.bin'
bin2c -o foo.h file1 file2 Create 'foo.h' from the contents of 'file1' and 'file2'
bin2c -d foo.h -o foo.c bar.bin Create 'foo.c' and 'foo.h' from the contents of 'bar.bin'
bin2c -t -d foo.h -o foo.c bar.bin Same as above with the addition of a file information table