https://github.com/markusfisch/calc
A tiny calculator for mathematical expressions in portable C
https://github.com/markusfisch/calc
Last synced: 11 months ago
JSON representation
A tiny calculator for mathematical expressions in portable C
- Host: GitHub
- URL: https://github.com/markusfisch/calc
- Owner: markusfisch
- License: unlicense
- Created: 2013-06-16T21:24:22.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2021-04-08T18:38:38.000Z (about 5 years ago)
- Last Synced: 2023-03-11T13:38:01.439Z (about 3 years ago)
- Language: C
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
}