A tiny calculator for mathematical expressions in portable C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README.md
calc.c
calc.h
main.c
test.sh

README.md

calc

A tiny calculator for mathematical expressions in portable C.

Building

Just run:

$ make

Embedding

Drop calc.c and calc.h into your project and use calc() like this:

double result = 0;
if (calc("3 + 4", &result, 0)) {
	...
} else {
	// syntax error
}