This project aims to provide a tool for the conversion of a file to formatted double quoted string or a c-style array.
Linux/WSL/MSYS
git clone https://github.com/0xvpr/vpr-bin2fmt vpr-bin2fmt
cd vpr-bin2fmt
cmake -B build
cmake --build build
# sudo cmake --build build --target install # uncomment if you want it available globally
Windows
git clone https://github.com/0xvpr/vpr-bin2fmt vpr-bin2fmt
cd vpr-bin2fmt
cmake.exe -B build
cmake.exe --build build
# cmake.exe --build build --target install # uncomment if you want it available globally
Usage:
vpr-bin2fmt <path/to/executable> [ optional switches ]
positional arguments:
path/to/executable
optional switches:
-c,-C output as c-style char array
-s,-S output as double quoted string
example :
vpr-bin2fmt path/to/file-1 path/to/file2 -s