Home | History | Annotate | Line # | Download | only in machine
limits.h revision 1.1
      1  1.1  uch /*	$NetBSD: limits.h,v 1.1 2001/02/09 18:35:29 uch Exp $	*/
      2  1.1  uch 
      3  1.1  uch /* Windows CE architecture */
      4  1.1  uch 
      5  1.1  uch #ifndef	_MACHINE_LIMITS_H_
      6  1.1  uch #define	_MACHINE_LIMITS_H_
      7  1.1  uch 
      8  1.1  uch #define	CHAR_BIT	8		/* number of bits in a char */
      9  1.1  uch #define	MB_LEN_MAX	32		/* Allow 31 bit UTF2 */
     10  1.1  uch 
     11  1.1  uch #define	SCHAR_MAX	127		/* min value for a signed char */
     12  1.1  uch #define	SCHAR_MIN	(-128)		/* max value for a signed char */
     13  1.1  uch 
     14  1.1  uch #define	UCHAR_MAX	255		/* max value for an unsigned char */
     15  1.1  uch #define	CHAR_MAX	127		/* max value for a char */
     16  1.1  uch #define	CHAR_MIN	(-128)		/* min value for a char */
     17  1.1  uch 
     18  1.1  uch #define	USHRT_MAX	65535		/* max value for an unsigned short */
     19  1.1  uch #define	SHRT_MAX	32767		/* max value for a short */
     20  1.1  uch #define	SHRT_MIN	(-32768)	/* min value for a short */
     21  1.1  uch 
     22  1.1  uch #define	UINT_MAX	0xffffffff	/* max value for an unsigned int */
     23  1.1  uch #define	INT_MAX		2147483647	/* max value for an int */
     24  1.1  uch #define	INT_MIN		(-2147483647-1)	/* min value for an int */
     25  1.1  uch 
     26  1.1  uch #define	ULONG_MAX	0xffffffff	/* max value for an unsigned long */
     27  1.1  uch #define	LONG_MAX	2147483647	/* max value for a long */
     28  1.1  uch #define	LONG_MIN	(-2147483647-1)	/* min value for a long */
     29  1.1  uch 
     30  1.1  uch #endif // _MACHINE_LIMITS_H_
     31