This library provides an easy and effecient way to calculate the result of an
expression. E.g. this line prints 7
printf("%f\n", calc("1 + 2 * 3", NULL, NULL, NULL));
- Operators: + - * /
- Functions
- Variables
- Error Handling
The library can be built using CMake. It can only be built as a static library. If CALC_BUILD_EXAMPLE is enabled the example is included.
This library provides a CMake file which can be used to build it and install it on your system. It can be included in any CMake project with find_package(Calc) after installing it. You can however also copy the files into your project.
See Calc.h (Doxygen)