Skip to content

markusfisch/calc

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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