scanf: support reading hex numbers with %x
[neatlibc.git] / limits.h
blob7ebdc8a684178ad99410e95403f7180b3f56d311
1 #ifndef _LIMITS_H
2 #define _LIMITS_H
4 #define CHAR_BIT 8
5 #define SCHAR_MIN -127
6 #define SCHAR_MAX 127
7 #define UCHAR_MAX 255u
8 #define CHAR_MIN SCHAR_MIN
9 #define CHAR_MAX SCHAR_MAX
10 #define MB_LEN_MAX 4
12 #define SHRT_MIN -32767
13 #define SHRT_MAX 32767
14 #define USHRT_MAX 65535u
15 #define INT_MIN -2147483647
16 #define INT_MAX 2147483647
17 #define UINT_MAX 4294967295u
19 #ifdef __x86_64__
20 #define LONG_MIN -9223372036854775807l
21 #define LONG_MAX 9223372036854775807l
22 #define ULONG_MAX 18446744073709551615l
23 #else
24 #define LONG_MIN -2147483647l
25 #define LONG_MAX 2147483647l
26 #define ULONG_MAX 4294967295ul
27 #endif
29 #endif