1 #ifndef _PDCLIB_LIMITS_H
2 #define _PDCLIB_LIMITS_H _PDCLIB_LIMITS_H
6 /* 7.10 Sizes of integer types <limits.h>
8 This file is part of the Public Domain C Library (PDCLib).
9 Permission is granted to use, modify, and / or redistribute at will.
12 /* Defined to 1 as multibyte characters are not supported yet. */
15 #define LLONG_MIN (-0x7fffffffffffffff - 1)
16 #define LLONG_MAX 0x7fffffffffffffff
17 #define ULLONG_MAX 0xffffffffffffffff
19 /* Produced by enquire version 5.1a, CWI, Amsterdam
20 http://www.cwi.nl/~steven/enquire.html */
22 /* Number of bits in a storage unit */
27 #define CHAR_MIN (-128)
28 /* Maximum signed char */
30 /* Minimum signed char */
31 #define SCHAR_MIN (-128)
32 /* Maximum unsigned char (minimum is always 0) */
35 #define SHRT_MAX 32767
37 #define SHRT_MIN (-32768)
39 #define INT_MAX 2147483647
41 #define INT_MIN (-2147483647-1)
43 #define LONG_MAX 2147483647L
45 #define LONG_MIN (-2147483647L-1L)
46 /* Maximum unsigned short (minimum is always 0) */
47 #define USHRT_MAX 65535
48 /* Maximum unsigned int (minimum is always 0) */
49 #define UINT_MAX 4294967295U
50 /* Maximum unsigned long (minimum is always 0) */
51 #define ULONG_MAX 4294967295UL