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

Latest commit

 

History

History
17 lines (13 loc) · 339 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 339 Bytes

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] = {
  // ...
};