home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
languages
/
dice_466
/
dice206b.lzh
/
netdcc
/
include
/
limits.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-02
|
755b
|
34 lines
/*
* LIMITS.H
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*/
#ifndef _LIMITS_H
#define _LIMITS_H
#define CHAR_BIT 8
#define CHAR_MAX SCHAR_MAX
#define CHAR_MIN SCHAR_MIN
#define SHRT_MAX 32767
#define SHRT_MIN -32768
#define INT_MAX ((sizeof(int) == 2) ? 32767 : (long)0x7FFFFFFF)
#define INT_MIN ((sizeof(int) == 2) ? -32768 : (long)0x80000000)
#define LONG_MAX ((long)0x7FFFFFFF)
#define LONG_MIN ((long)0x80000000)
#ifndef MB_LEN_MAX
#define MB_LEN_MAX 2 /* also set in stdlib.h */
#endif
#define SCHAR_MAX 127
#define SCHAR_MIN -128
#define UCHAR_MAX 0xFF
#define UINT_MAX ((sizeof(int) == 2) ? 0xFFFF : 0xFFFFFFFF)
#define ULONG_MAX 0xFFFFFFFF
#define USHRT_MAX 0xFFFF
#endif