Skip to content

hydranix/FileToCSource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

FileToCSource

compile with: g++ -o FileToCSource FileToCSource.cpp

to use: ./FileToCSource /path/to/infile /path/to/outfile.c

Example output for a 16 byte file:

char filedata[] = {0x7f, 0x45, 0x4c, 0x46, 0x02, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

About

Quick and dirty way to embed files directly into soruce code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages