2022-04-12 02:42:06 +02:00
|
|
|
#ifndef FUNC_H
|
|
|
|
#define FUNC_H
|
|
|
|
|
|
|
|
#define ERROR 8888888888.9
|
|
|
|
#define ERROR_END 8888888888.7
|
|
|
|
|
|
|
|
extern char debuf[50];
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
double x, y;
|
|
|
|
} TCoord;
|
|
|
|
|
|
|
|
double textwidth(const char* s, int len);
|
|
|
|
double textheight(const char* s, int len);
|
|
|
|
|
|
|
|
int isalpha(char c);
|
|
|
|
double convert(const char* s, int* len);
|
|
|
|
|
2022-04-21 23:26:05 +02:00
|
|
|
static inline
|
|
|
|
int roundi(double a) {
|
|
|
|
return round(a);
|
|
|
|
}
|
|
|
|
|
|
|
|
#define EQUALITY_VAL 0.000001
|
|
|
|
int isequal(double a, double b);
|
|
|
|
|
2022-04-12 02:42:06 +02:00
|
|
|
#endif /* FUNC_H */
|