1 #ifndef C_UTIL_H_INCLUDED
2 #define C_UTIL_H_INCLUDED
4 /* C language stuff. Doesn't involve any libraries that aren't part of
8 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
10 /* GNU_PRINTF_ATTR lets the GNU compiler check printf-type
11 calls to be sure the arguments match the format string, thus preventing
12 runtime segmentation faults and incorrect messages.
15 #define GNU_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b)))
17 #define GNU_PRINTF_ATTR(a,b)