Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/0xvpr/vpr-bin2fmt

A utility program to convert binary data to a formatted string of the user's choice
https://github.com/0xvpr/vpr-bin2fmt

binary-format c cpp data-formatting string-formatter tool tooling utility

Last synced: 8 days ago
JSON representation

A utility program to convert binary data to a formatted string of the user's choice

Awesome Lists containing this project

README

        

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
```bash
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
```powershell
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
```bash
Usage:
vpr-bin2fmt [ 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
```