00001
00002
00003
00004
00005
00006
00007
00008 #ifndef LIMITS_H
00009 #define LIMITS_H
00010
00011 #define CHAR_MIN (-128)
00012 #define CHAR_MAX 127
00013 #define UCHAR_MAX 255
00014
00015 #define SHRT_MAX ((short)(~0U>>1))
00016 #define SHRT_MIN (-SHRT_MAX - 1)
00017 #define USHRT_MAX ((short)(~0U>>1))
00018
00019 #define INT_MAX ((int)(~0U>>1))
00020 #define INT_MIN (-INT_MAX - 1)
00021 #define UINT_MAX (~0U)
00022
00023 #define LONG_MAX ((long)(~0UL>>1))
00024 #define LONG_MIN (-LONG_MAX - 1)
00025 #define ULONG_MAX (~0UL)
00026
00027 #endif