Mercurial > hg > fxanalyse
comparison utils.h @ 215:e925664b4b1b
Add streq() and strneq() definitions to utils.h
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 14 Apr 2014 12:46:14 +0200 |
parents | 97112b45b838 |
children |
comparison
equal
deleted
inserted
replaced
214:920ff733b43b | 215:e925664b4b1b |
---|---|
9 #endif | 9 #endif |
10 | 10 |
11 #ifndef MIN | 11 #ifndef MIN |
12 #define MIN(x, y) (x) < (y) ? (x) : (y) | 12 #define MIN(x, y) (x) < (y) ? (x) : (y) |
13 #endif | 13 #endif |
14 | |
15 #define streq(x, y) (strcmp((x), (y)) == 0) | |
16 #define strneq(x, y, n) (strncmp((x), (y), (n)) == 0) | |
14 | 17 |
15 /* format floating points numbers accordingly to fmt and asdd thousands separator */ | 18 /* format floating points numbers accordingly to fmt and asdd thousands separator */ |
16 const char * thousands(char *buffer, int size, char *fmt, double val); | 19 const char * thousands(char *buffer, int size, char *fmt, double val); |
17 | 20 |
18 double Peta(double x); | 21 double Peta(double x); |