4 /* useful definitions */
23 #define INT_MAX MAXINT
28 #define MAX(x, y) ((x) > (y) ? (x) : (y))
32 #define MIN(x, y) ((x) < (y) ? (x) : (y))
36 #define NELEMS(x) (sizeof(x)/sizeof(x[0]))
40 #define SKIP_CHARS(x) while(!isspace((int)*x)) (x)++
44 #define SKIP_SPACES(x) while (isspace((int)*x)) (x)++
48 #define SKIP_WORD(x) do { SKIP_SPACES(x); \
50 SKIP_SPACES(x);} while(0)