The intattr.h header

#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 */

The intattr.h C header file defines macros for inspecting integer types.