Simple integer Calculator in Reverse Polish Notation. It does support double when using the power of ^
by converting the passed integer to double to use the "pow" math function
$ make
Will compile both the strtok and rpncalc binary files
$ make strtok
$ make rpncalc
The strtok.c contains the tokenizer that changes infix statement to the postfix:
$ ./strtok "((3+5)*7)/2"
$ 3 5 + 7 * 2 /
$ ./rpncalc "3 5 + 7 * 2 /"
$ 28
$ ./strtok "((3+5)*7)/2" | ./rpncalc