usaa25/sk2/calculator.h
2026-02-12 00:11:50 +01:00

19 lines
291 B
C

#ifndef CALCULATOR_H
#define CALCULATOR_H
typedef enum {
CALC_OK = 0,
CALC_ERR
} calc_status_t;
/* - vyhodnoti vyraz */
/* - expr: vstup */
/* - out: vysledok */
calc_status_t calc_evaluate(const char *expr, double *out);
/* - text chyby */
const char *calc_error(void);
#endif