#ifndef _LIMITS_H #define _LIMITS_H // System Specific Limits #include <_limits.h> /* Support signed or unsigned plain-char */ #if '\0' - 1 > 0 #define CHAR_MIN 0 #define CHAR_MAX 255 #else #define CHAR_MIN (-128) #define CHAR_MAX 127 #endif /* Some universal constants... */ #define CHAR_BIT 8 #define SCHAR_MIN (-128) #define SCHAR_MAX 127 #define UCHAR_MAX 255 #define SHRT_MIN (-1 - 0x7fff) #define SHRT_MAX 0x7fff #define USHRT_MAX 0xffff #define INT_MIN (-1 - 0x7fffffff) #define INT_MAX 0x7fffffff #define UINT_MAX 0xffffffffU #define LONG_MIN (-LONG_MAX - 1) #define ULONG_MAX (2UL * LONG_MAX + 1) #define LLONG_MIN (-LLONG_MAX - 1) #define ULLONG_MAX (2ULL * LLONG_MAX + 1) #endif