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 | 2011-09-04 | 1.5 kB | |
| bin2c-1.0.zip | 2011-09-04 | 14.2 kB | |
| Totals: 2 Items | 15.7 kB | 0 | |
* bin2c 1.0
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.
* License
To the extent possible under law, Fatih Aygün has 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 a 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
-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'