# HG changeset patch # User Daniele Nicolodi # Date 1397472374 -7200 # Node ID e925664b4b1b8c4ae2ecf1bf31a37947facf51ae # Parent 920ff733b43b2b1b9afcb6b7f94655554ce046fe Add streq() and strneq() definitions to utils.h diff -r 920ff733b43b -r e925664b4b1b utils.h --- a/utils.h Mon Apr 14 12:45:23 2014 +0200 +++ b/utils.h Mon Apr 14 12:46:14 2014 +0200 @@ -12,6 +12,9 @@ #define MIN(x, y) (x) < (y) ? (x) : (y) #endif +#define streq(x, y) (strcmp((x), (y)) == 0) +#define strneq(x, y, n) (strncmp((x), (y), (n)) == 0) + /* format floating points numbers accordingly to fmt and asdd thousands separator */ const char * thousands(char *buffer, int size, char *fmt, double val);