1 #ifndef CASPRINTF_H_INCLUDED
3 /* GNU_PRINTF_ATTR lets the GNU compiler check pm_message() and pm_error()
4 calls to be sure the arguments match the format string, thus preventing
5 runtime segmentation faults and incorrect messages.
8 #define GNU_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b)))
10 #define GNU_PRINTF_ATTR(a,b)
13 void GNU_PRINTF_ATTR(2,3)
14 casprintf(const char ** const retvalP
, const char * const fmt
, ...);
17 strfree(const char * const string
);