Skip to content

markusfisch/calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

A tiny calculator for mathematical expressions in portable C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published