Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
limits.h File Reference
#include <_limits.h>
Include dependency graph for limits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CHAR_MIN   (-128)
 
#define CHAR_MAX   127
 
#define CHAR_BIT   8
 
#define SCHAR_MIN   (-128)
 
#define SCHAR_MAX   127
 
#define UCHAR_MAX   255
 
#define SHRT_MIN   (-1 - 0x7fff)
 
#define SHRT_MAX   0x7fff
 
#define USHRT_MAX   0xffff
 
#define INT_MIN   (-1 - 0x7fffffff)
 
#define INT_MAX   0x7fffffff
 
#define UINT_MAX   0xffffffffU
 
#define LONG_MIN   (-LONG_MAX - 1)
 
#define ULONG_MAX   (2UL * LONG_MAX + 1)
 
#define LLONG_MIN   (-LLONG_MAX - 1)
 
#define ULLONG_MAX   (2ULL * LLONG_MAX + 1)
 
#define MB_LEN_MAX   4
 

Macro Definition Documentation

◆ CHAR_BIT

#define CHAR_BIT   8

Expands to the integer constant 8. Number of bits in byte

Definition at line 28 of file limits.h.

◆ CHAR_MAX

#define CHAR_MAX   127

Expands to the integer constant 127. Maximum value of char

Definition at line 22 of file limits.h.

◆ CHAR_MIN

#define CHAR_MIN   (-128)

Expands to the integer constant -128. Minimum value of char

Definition at line 19 of file limits.h.

◆ INT_MAX

#define INT_MAX   0x7fffffff

Expands to hex 0x7fffffff. Maximum value of signed int

Definition at line 52 of file limits.h.

◆ INT_MIN

#define INT_MIN   (-1 - 0x7fffffff)

Expands to hex -1 - 0x7fffffff. Minimum value of signed int

Definition at line 49 of file limits.h.

◆ LLONG_MIN

#define LLONG_MIN   (-LLONG_MAX - 1)

Expands to (-LLONG_MAX - 1). Minimum value of signed long long

Definition at line 64 of file limits.h.

◆ LONG_MIN

#define LONG_MIN   (-LONG_MAX - 1)

Expands to (-LONG_MAX - 1). Minimum value of signed long

Definition at line 58 of file limits.h.

◆ MB_LEN_MAX

#define MB_LEN_MAX   4

Maximum multibyte length of a character across all locales

Definition at line 70 of file limits.h.

◆ SCHAR_MAX

#define SCHAR_MAX   127

Expands to the integer constant 127. Maximum value of signed char

Definition at line 34 of file limits.h.

◆ SCHAR_MIN

#define SCHAR_MIN   (-128)

Expands to the integer constant -128. Minimum value of signed char

Definition at line 31 of file limits.h.

◆ SHRT_MAX

#define SHRT_MAX   0x7fff

Expands to the Hex constant 0x7fff. Maximum value of signed short

Definition at line 43 of file limits.h.

◆ SHRT_MIN

#define SHRT_MIN   (-1 - 0x7fff)

Expands to -1 - 0x7fff. Minimum value of signed short

Definition at line 40 of file limits.h.

◆ UCHAR_MAX

#define UCHAR_MAX   255

Expands to the integer constant 255. Maximum value of unsigned char

Definition at line 37 of file limits.h.

◆ UINT_MAX

#define UINT_MAX   0xffffffffU

Expands to hex 0xffffffffU. Maximum value of unsigned int

Definition at line 55 of file limits.h.

◆ ULLONG_MAX

#define ULLONG_MAX   (2ULL * LLONG_MAX + 1)

Expands to (2ULL * LLONG_MAX + 1). Maximum value of unsigned long long

Definition at line 67 of file limits.h.

◆ ULONG_MAX

#define ULONG_MAX   (2UL * LONG_MAX + 1)

Expands to (2UL * LONG_MAX + 1). Maximum value of unsigned long

Definition at line 61 of file limits.h.

◆ USHRT_MAX

#define USHRT_MAX   0xffff

Expands to hex 0xffff. Maximum value of unsigned short

Definition at line 46 of file limits.h.