home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_02
/
9n02012a
< prev
next >
Wrap
Text File
|
1991-01-21
|
976b
|
46 lines
Listing 1
/* limits.h standard header -- 8-bit version
* copyright (c) 1991 by P.J. Plauger
*/
#ifndef _LIMITS
#define _LIMITS
#ifndef _YVALS
#include <yvals.h>
#endif
/* char properties */
#define CHAR_BIT 8
#if _CSIGN
#define CHAR_MAX 127
#define CHAR_MIN (-127-_2C)
#else
#define CHAR_MAX 255
#define CHAR_MIN 0
#endif
/* int properties */
#if _ILONG
#define INT_MAX 2147483647
#define INT_MIN (-2147483647-_2C)
#else
#define INT_MAX 32767
#define INT_MIN (-32767-_2C)
#endif
/* long properties */
#define LONG_MAX 2147483647
#define LONG_MIN (-2147483647-_2C)
/* multibyte properties */
#define MB_LEN_MAX _MBMAX
/* signed char properties */
#define SCHAR_MAX 127
#define SCHAR_MIN (-127-_2C)
/* short properties */
#define SHRT_MAX 32767
#define SHRT_MIN (-32767-_2C)
/* unsigned properties */
#define UCHAR_MAX 255
#define UINT_MAX 4294967295
#define ULONG_MAX 4294967295
#define USHRT_MAX 65535
#endif