Skip to content

falki147/Calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calc

Introduction

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));

Features

  • Operators: + - * /
  • Functions
  • Variables
  • Error Handling

Building

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.

Installation

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.

Usage

See Calc.h (Doxygen)

About

Small C function to parse expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published