#include "/package/prog/prjlibs/include/intattr.h" INTATTR_SIGNED(unsigned int)==0; INTATTR_UNSIGNED(unsigned int)==1; INTATTR_NEGATIVE(unsigned int, -1)==0; INTATTR_LEN(10, int)==11 /* in the case of 32-bit int */
intattr.h C header file defines macros for inspecting
INTATTR_SIGNED(type)yields a true value if the given type is a signed type.
INTATTR_UNSIGNED(type)yields a true value if the given type is an unsigned type.
INTATTR_NEGATIVE(type, value)yields a true value if the given value, when converted to the given type, is negative.
INTATTR_LEN(base, type)yields the length of a buffer (not including a terminating null character) needed to hold a printed representation of a value of the given type, in the given base. Only bases 2, 4, 8, 10, 32, 36, and 64 are supported. The base must be given as a literal integer, or as a macro which expands to a literal integer.