Skip to content

Sophia-Cristina/bin2h

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

bin2h

Utility for converting binary files to C / C++ headers.

License

bin2h is released to the Public Domain.


GOT FROM: https://github.com/elnormous/bin2h

Modified to C++ and skewed a little to my style.

-d Print decimal instead of hex literals;

-e Output a variable that holds a pointer to the last element of the data;

-i Specify the input file;

-n Specify the variable name;

-o Specify the output file;

-s Output a variable for data size;

-z Add a zero to the end of the array;

-c Collums for a new line (0x1 to 0xF). '0': No line change.;

About

Store binary file in C++ header.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%