Skip to content

Latest commit

 

History

History
15 lines (7 loc) · 299 Bytes

README.md

File metadata and controls

15 lines (7 loc) · 299 Bytes

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};