PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
limits.h
Go to the documentation of this file.
1
#ifndef _LIMITS_H
2
#define _LIMITS_H 1
3
4
#ifdef __cplusplus
5
extern
"C"
6
{
7
#endif
8
9
#include "
_internal/config.h
"
10
11
/* TODO: Defined to 1 as multibyte characters are not supported yet. */
12
#define MB_LEN_MAX 1
13
14
#define LLONG_MIN (-__LONG_LONG_MAX__ - 1)
15
#define LLONG_MAX __LONG_LONG_MAX__
16
#define ULLONG_MAX __LONG_LONG_MAX__ * 2ULL + 1
17
18
#define CHAR_BIT __CHAR_BIT__
19
#define CHAR_MAX __SCHAR_MAX__
20
#define CHAR_MIN (-__SCHAR_MAX__ - 1)
21
#define SCHAR_MAX __SCHAR_MAX__
22
#define SCHAR_MIN (-__SCHAR_MAX__ - 1)
23
#define UCHAR_MAX (__SCHAR_MAX__ * 2 + 1)
24
#define SHRT_MAX __SHRT_MAX__
25
#define SHRT_MIN (-__SHRT_MAX__ - 1)
26
#define INT_MAX __INT_MAX__
27
#define INT_MIN (-__INT_MAX__ - 1)
28
#define LONG_MAX __LONG_MAX__
29
#define LONG_MIN (-__LONG_MAX__ - 1)
30
#define USHRT_MAX (__SHRT_MAX__ * 2U + 1)
31
#define UINT_MAX (__INT_MAX__ * 2U + 1)
32
#define ULONG_MAX (__LONG_MAX__ * 2UL + 1)
33
34
#ifdef __cplusplus
35
}
36
#endif
37
38
#endif
config.h
include
libstd
limits.h
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8