Skip to content

Latest commit

 

History

History
46 lines (42 loc) · 1.37 KB

README.md

File metadata and controls

46 lines (42 loc) · 1.37 KB

vpr-bin2fmt


This project aims to provide a tool for the conversion of a file to formatted double quoted string or a c-style array.

Build instructions

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

Example Usage

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