   baseconv
   --------

A small tool by James Stanley to convert between arbitrary bases.
For some values of arbitrary. Bases 2 to 36 are supported.

E-mail me on james@incoherency.co.uk
My website is http://incoherency.co.uk/

To use baseconv to convert hexadecimal to decimal:
$ ./baseconv ff 16 10
255

And the inverse:
$ ./baseconv 255 10 16
ff

Usage: ./baseconv NUMBER ORIG_BASE NEW_BASE
Where NUMBER is the number to convert, ORIG_BASE is the base it is currently in, and NEW_BASE is the base to convert to.
To convert the decimal 255 to hexadecimal:
 ./basecond 255 10 16
The bases must be given in decimal. strtol() is used to get the value of the bases passed to the program. 0 is given as the base. Thus, you may use any base identifiers the local implementation of strtol() understands. If you pass 0 as ORIG_BASE, these modifiers will also apply to NUMBER. A minus sign (-) can be used to denote negative numbers.

To compile baseconv, run compile.sh. If your system can't run compile.sh, 'cc -o baseconv baseconv.c' should suffice.

E-mail me if you have problems.

Included is (probably) a working Linux binary. I recommend compiling it yourself. It might work better that way.
