-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathlimits.h
More file actions
49 lines (43 loc) · 1.58 KB
/
limits.h
File metadata and controls
49 lines (43 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*********************************************************************/
/* */
/* This Program Written by Paul Edwards. */
/* Released to the Public Domain */
/* */
/*********************************************************************/
/*********************************************************************/
/* */
/* limits.h - limits header file. */
/* */
/*********************************************************************/
#ifndef __LIMITS_INCLUDED
#define __LIMITS_INCLUDED
#define CHAR_BIT 8
#define SCHAR_MIN -128
#define SCHAR_MAX 127
#define UCHAR_MAX 255
#if ('\x80' < 0)
#define CHAR_MIN -128
#define CHAR_MAX 127
#else
#define CHAR_MIN 0
#define CHAR_MAX 255
#endif
#define MB_LEN_MAX 1
#define SHRT_MIN (-SHRT_MAX-1)
#define SHRT_MAX 32767
#define USHRT_MAX ((unsigned short)65535U)
#if (defined(__OS2__) || defined(__32BIT__) || defined(__MVS__) \
|| defined(__CMS__) || defined(__WIN32__))
#define INT_MIN (-INT_MAX-1)
#define INT_MAX 2147483647
#define UINT_MAX 4294967295U
#endif
#if (defined(__MSDOS__) || defined(__DOS__) || defined(__POWERC))
#define INT_MIN (-INT_MAX-1)
#define INT_MAX 32767
#define UINT_MAX 65535U
#endif
#define LONG_MIN (-LONG_MAX-1)
#define LONG_MAX 2147483647L
#define ULONG_MAX 4294967295UL
#endif