名前空間
変種
操作

標準ライブラリヘッダー <limits.h>

From cppreference.com

このヘッダーは、型サポートライブラリの一部であり、特にCの数値制限インターフェイ​​スの一部です。

コア言語の整数型の制限
BOOL_WIDTH
(C23)
_Bool のビット幅
(マクロ定数)
BOOL_MAX
(C29)
_Bool の最大値
(マクロ定数)
CHAR_BIT
バイトのビット幅
(マクロ定数) [編集]
MB_LEN_MAX
マルチバイト文字の最大バイト数
(マクロ定数) [編集]
CHAR_WIDTH
(C23)
char のビット幅、CHAR_BIT と同じ
(マクロ定数)
CHAR_MIN
char の最小値
(マクロ定数) [編集]
CHAR_MAX
char の最大値
(マクロ定数) [編集]
SCHAR_WIDTHSHRT_WIDTHINT_WIDTHLONG_WIDTHLLONG_WIDTH
(C23)(C23)(C23)(C23)(C23)
signed charshortintlong、および long long のビット幅
(マクロ定数)
SCHAR_MINSHRT_MININT_MINLONG_MINLLONG_MIN
(C99)
signed charshortintlong、および long long の最小値
(マクロ定数) [編集]
SCHAR_MAXSHRT_MAXINT_MAXLONG_MAXLLONG_MAX
(C99)
signed charshortintlong、および long long の最大値
(マクロ定数) [編集]
UCHAR_WIDTHUSHRT_WIDTHUINT_WIDTHULONG_WIDTHULLONG_WIDTH
(C23)(C23)(C23)(C23)(C23)
unsigned charunsigned shortunsigned intunsigned long、および unsigned long long のビット幅
(マクロ定数)
UCHAR_MAXUSHRT_MAXUINT_MAXULONG_MAXULLONG_MAX
(C99)
unsigned charunsigned shortunsigned int
unsigned long、および unsigned long long の最大値
(マクロ定数) [編集]
BITINT_MAXWIDTH
(C23)
型指定子 _BitInt(N) で宣言されるビット精度の整数のサポートされる最大幅 NULLONG_WIDTH 以上
(マクロ定数)

[編集] 概要

#define __STDC_VERSION_LIMITS_H__ 202311L
 
#define BITINT_MAXWIDTH  /* see description */
#define BOOL_MAX         /* see description */
#define BOOL_WIDTH       /* see description */
#define CHAR_BIT         /* see description */
#define CHAR_MAX         /* see description */
#define CHAR_MIN         /* see description */
#define CHAR_WIDTH       /* see description */
#define INT_MAX          /* see description */
#define INT_MIN          /* see description */
#define INT_WIDTH        /* see description */
#define LLONG_MAX        /* see description */
#define LLONG_MIN        /* see description */
#define LLONG_WIDTH      /* see description */
#define LONG_MAX         /* see description */
#define LONG_MIN         /* see description */
#define LONG_WIDTH       /* see description */
#define MB_LEN_MAX       /* see description */
#define SCHAR_MAX        /* see description */
#define SCHAR_MIN        /* see description */
#define SCHAR_WIDTH      /* see description */
#define SHRT_MAX         /* see description */
#define SHRT_MIN         /* see description */
#define SHRT_WIDTH       /* see description */
#define UCHAR_MAX        /* see description */
#define UCHAR_WIDTH      /* see description */
#define UINT_MAX         /* see description */
#define UINT_WIDTH       /* see description */
#define ULLONG_MAX       /* see description */
#define ULLONG_WIDTH     /* see description */
#define ULONG_MAX        /* see description */
#define ULONG_WIDTH      /* see description */
#define USHRT_MAX        /* see description */
#define USHRT_WIDTH      /* see description */
English 日本語 中文(简体) 中文(繁體)