Namespaces
Variants

Standard library header <limits.h>

From cppreference.net

Cet en-tête fait partie de la bibliothèque de support des types , en particulier il fait partie de l'interface des limites numériques en C.

Limites des types entiers du langage de base
BOOL_WIDTH
(C23)
largeur en bits de _Bool
(constante macro)
BOOL_MAX
(C29)
valeur maximale de _Bool
(constante macro)
CHAR_BIT
largeur en bits de l'octet
(constante macro)
MB_LEN_MAX
nombre maximum d'octets dans un caractère multioctet
(constante macro)
CHAR_WIDTH
(C23)
largeur en bits du char , identique à CHAR_BIT
(constante macro)
CHAR_MIN
valeur minimale de char
(constante macro)
CHAR_MAX
valeur maximale de char
(constante macro)
SCHAR_WIDTH SHRT_WIDTH INT_WIDTH LONG_WIDTH LLONG_WIDTH
(C23) (C23) (C23) (C23) (C23)
largeur en bits de signed char , short , int , long , et long long respectivement
(constante macro)
SCHAR_MIN SHRT_MIN INT_MIN LONG_MIN LLONG_MIN
(C99)
valeur minimale de signed char , short , int , long et long long respectivement
(constante macro)
SCHAR_MAX SHRT_MAX INT_MAX LONG_MAX LLONG_MAX
(C99)
valeur maximale de signed char , short , int , long et long long respectivement
(constante macro)
UCHAR_WIDTH USHRT_WIDTH UINT_WIDTH ULONG_WIDTH ULLONG_WIDTH
(C23) (C23) (C23) (C23) (C23)
largeur en bits de unsigned char , unsigned short , unsigned int , unsigned long , et unsigned long long respectivement
(constante macro)
UCHAR_MAX USHRT_MAX UINT_MAX ULONG_MAX ULLONG_MAX
(C99)
valeur maximale de unsigned char , unsigned short , unsigned int ,
unsigned long et unsigned long long respectivement
(constante macro)
BITINT_MAXWIDTH
(C23)
largeur maximale N prise en charge par la déclaration d'un entier à précision de bits dans le spécificateur de type _BitInt ( N ) , supérieure ou égale à ULLONG_WIDTH
(constante macro)

Synopsis

#define __STDC_VERSION_LIMITS_H__ 202311L
#define BITINT_MAXWIDTH  /* voir description */
#define BOOL_MAX         /* voir description */
#define BOOL_WIDTH       /* voir description */
#define CHAR_BIT         /* voir description */
#define CHAR_MAX         /* voir description */
#define CHAR_MIN         /* voir description */
#define CHAR_WIDTH       /* voir description */
#define INT_MAX          /* voir description */
#define INT_MIN          /* voir description */
#define INT_WIDTH        /* voir description */
#define LLONG_MAX        /* voir description */
#define LLONG_MIN        /* voir description */
#define LLONG_WIDTH      /* voir description */
#define LONG_MAX         /* voir description */
#define LONG_MIN         /* voir description */
#define LONG_WIDTH       /* voir description */
#define MB_LEN_MAX       /* voir description */
#define SCHAR_MAX        /* voir description */
#define SCHAR_MIN        /* voir description */
#define SCHAR_WIDTH      /* voir description */
#define SHRT_MAX         /* voir description */
#define SHRT_MIN         /* voir description */
#define SHRT_WIDTH       /* voir description */
#define UCHAR_MAX        /* voir description */
#define UCHAR_WIDTH      /* voir description */
#define UINT_MAX         /* voir description */
#define UINT_WIDTH       /* voir description */
#define ULLONG_MAX       /* voir description */
#define ULLONG_WIDTH     /* voir description */
#define ULONG_MAX        /* voir description */
#define ULONG_WIDTH      /* voir description */
#define USHRT_MAX        /* voir description */
#define USHRT_WIDTH      /* voir description */