diff options
author | Bert Münnich <ber.t@gmx.com> | 2011-09-26 21:53:52 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@gmx.com> | 2011-09-26 21:53:52 +0200 |
commit | d721d8453e6c0ff7112e8228eb58aa438d1f7f1a (patch) | |
tree | 449e393e7bb614b150f4c72b3998ae5ced95e201 /util.h | |
parent | d08408e94250425e677e1ab33d917e05e229faa2 (diff) |
Added STREQ macro
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -30,7 +30,9 @@ #define MAX(a,b) ((a) > (b) ? (a) : (b)) #endif -#define ARRLEN(a) (sizeof(a) / sizeof(a[0])) +#define ARRLEN(a) (sizeof(a) / sizeof((a)[0])) + +#define STREQ(a,b) (!strcmp((a), (b))) #define TIMEDIFF(t1,t2) (((t1)->tv_sec - (t2)->tv_sec) * 1000 + \ ((t1)->tv_usec - (t2)->tv_usec) / 1000) |