Skip to content

A simple bash script to convert C code to an Algorithm-ish format

Notifications You must be signed in to change notification settings

Roshan-R/ctoalgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CtoAlgo 📔

A simple bash script to convert C code to Algorithm-ish format

Installation

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 

Using

ctoalgo example.c

prints converted code to STDOUT

for saving to a file, use output redirection

ctoalgo example.c > output.txt

Screenshots

Standard C code

Screenshot_1

After Converting it

Screenshot_2

Contributing

Contributions are always welcome, feel free to do so!

About

A simple bash script to convert C code to an Algorithm-ish format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published