Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

file-header

Convert any binary to a C-style array (generating an header file)

Usage

$ file2header <input_binary.exe> <output_header.h> <bytes_per_line>
<input_binary.exe>    Path to any binary file
<output_header.h>     Path to output file
<bytes_per_line>      Optionnal: Number of bytes for each line (default: 25)
Example: file header image.exe image.h 30

Output example

#pragma once
#include <cstdint>

const uint8_t image[] = 
{
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 //...
};

About

Convert any binary to a C-style

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages