blob: 1ea44b070e7f55e40c1e07b2d40d037c8f351a71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*! @file helpers-misc.h */
#ifndef HELPERS_MISC_H
#define HELPERS_MISC_H
#ifdef __cplusplus
extern "C" {
#endif
#define PI 3.1415926535
#ifndef MINMAX
#define MINMAX
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#endif
int roundDouble(double src);
char startsWith(const char* pre, const char* str);
char* rTrim(char* const str, char junk);
char* lTrim(char* const str, char junk);
char *copy_trim(char const *s);
void inplace_trim(char *s);
char* emb_optOut(double num, char* str);
char* emb_strdup(const char* src);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* HELPERS_MISC_H */
/* kate: bom off; indent-mode cstyle; indent-width 4; replace-trailing-space-save on; */
|