A simple bash script to convert C code to Algorithm-ish format
sudo apt install clang-format
git clone https://github.com/Roshan-R/ctoalgo.git
cd ctoalgo
chmod +x ./ctoalgo.sh
sudo cp ctoalgo.sh /usr/bin/ctoalgo
ctoalgo example.c
prints converted code to STDOUT
for saving to a file, use output redirection
ctoalgo example.c > output.txt
Contributions are always welcome, feel free to do so!