Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.
/ hexc Public archive
forked from sdarre/hexc

Terminal program for converting to and from binary, decimal, and hexadecimal.

License

Notifications You must be signed in to change notification settings

ch-graveyard/hexc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hexc

Terminal program for converting to and from binary, decimal, and hexadecimal.

To build, run make. To install, build and run sudo make install. To uninstall, run sudo make uninstall.

Run hexc {operator} {string1 string2 string3...} to produce a converted string or series of strings.

The operators are as follows:

Operator Description Limit (per string)
-bd Binary to decimal 11111111111111111111111111111111111111111111111111111
-bh Binary to hexadecimal Unlimited.
-db Decimal to binary 9199999999999999999
-dh Decimal to hexadecimal 4294967295
-hb Hexadecimal to binary Unlimited.
-hd Hexadecimal to decimal FFFFFFFFFFFFF

hexc can be fed several strings, separated by whitespace. For example:

~$ hexc -bd 10101 111
10101 -> 21
111 -> 7
~$ hexc -hb 3b9ac9ff ABC123
3B9AC9FF -> 00111011100110101100100111111111
ABC123 -> 101010111100000100100011

To-do

  • Implement conversion to and from ASCII
  • Implement the ability to feed text files as input
  • Raise upper limit on conversion from decimal to hexadecimal and vice versa

About

Terminal program for converting to and from binary, decimal, and hexadecimal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.9%
  • Makefile 2.1%