OurOS
0.1
Operating System built by McGill Students
Loading...
Searching...
No Matches
limits.h
1
#ifndef _LIMITS
2
#define _LIMITS
3
4
#define CHAR_BIT 8
5
6
#define SCHAR_MAX ((signed char)(((unsigned char)1 << (sizeof(signed char)*8 - 1)) - 1))
7
#define SCHAR_MIN (-SCHAR_MAX - 1)
8
#define UCHAR_MAX ((unsigned char)~0U)
9
10
#define SHRT_MAX ((short)(((unsigned short)1 << (sizeof(short)*8 - 1)) - 1))
11
#define SHRT_MIN (-SHRT_MAX - 1)
12
#define USHRT_MAX ((unsigned short)~0U)
13
14
#define INT_MAX ((int)(((unsigned int)1 << (sizeof(int)*8 - 1)) - 1))
15
#define INT_MIN (-INT_MAX - 1)
16
#define UINT_MAX ((unsigned int)~0U)
17
18
#define LONG_MAX ((long)(((unsigned long)1UL << (sizeof(long)*8 - 1)) - 1))
19
#define LONG_MIN (-LONG_MAX - 1)
20
#define ULONG_MAX ((unsigned long)~0UL)
21
22
#define LLONG_MAX ((long long)(((unsigned long long)1ULL << (sizeof(long long)*8 - 1)) - 1))
23
#define LLONG_MIN (-LLONG_MAX - 1)
24
#define ULLONG_MAX ((unsigned long long)~0ULL)
25
26
#define CHAR_MIN SCHAR_MIN
27
#define CHAR_MAX SCHAR_MAX
28
29
#endif
libc
limits.h
Generated by
1.9.8