Skip to content

Single header library for evaluating mathematical expressions

Notifications You must be signed in to change notification settings

TheAlukard/simple_calc.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

#define SIMPLE_CALC_IMPLEMENTATION
#include "simple_calc.h"

int main(void)
{
	double six = sc_calculate("3 + 3", -1); // -1 for null terminated strings
	double one = sc_calculate("3 + -2/1", 8); // >0 for sized strings
	return 0;
}

Testing

gcc -o test test.c -lm // or clang
./test

About

Single header library for evaluating mathematical expressions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages