Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
/ ByteToHeader Public archive

Simple C tool to generate a C header file with an array of bytes of given file.

Notifications You must be signed in to change notification settings

hypervisor/ByteToHeader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ByteToHeader

Simple C tool to generate a C header file with an array of bytes of given file. Useful for storing resources in memory without relying on a file.

Usage:

./bth my_file my_file.h my_file_array(optional)

Output:

#pragma once

// This file was auto-generated.

unsigned char my_file_array[0xSIZE] = {
  // ...
};

About

Simple C tool to generate a C header file with an array of bytes of given file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages