bconv is a lightweight command-line tool for converting numbers between binary, decimal, and hexadecimal formats. It allows users to quickly perform conversions directly in the terminal without needing an interactive interface.
bconv_demo.mp4
- Convert between binary, decimal, and hexadecimal number systems.
- Simple CLI syntax using flags.
- Efficient implementation using standard C.
- Works on Linux and macOS (and Windows via WSL or MinGW).
Ensure you have gcc installed, then compile the program:
gcc main.c conversion.c -o bconv
Or if you're on a mac use clang and compile
clang -o bonv main.c conversion.c
Move the Executable to /usr/local/bin/ so that you can run bconv from anywhere in the terminal.
sudo mv bconv /usr/local/bin/
bconv <input_format_flag> <output_format_flag>
Support flags include: -b, for binary -d, for decimal -h, for hexadecimal