Skip to content

A simple commandline utility that generates C source files from binary files.

Notifications You must be signed in to change notification settings

JeremyAgost/bin2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

* 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'

About

A simple commandline utility that generates C source files from binary files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages