Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

limits.h

Go to the documentation of this file.
00001 /*!     \file include/limits.h
00002  *      \brief LIBC limits.
00003  *      \author Andrea Righi <drizzt@inwind.it>
00004  *      \date Last update: 2004-01-27
00005  *      \note Copyright (&copy;) 2003 Andrea Righi
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

Generated on Fri Feb 20 15:32:16 2004 for Minirighi by doxygen1.2.18