Namespaces
Variants

Standard library header <climits>

From ko.cppreference.net
Standard library headers

이 헤더는 원래 C 표준 라이브러리에 <limits.h> 로 존재했습니다.

이 헤더는 type support 라이브러리의 일부이며, 특히 C numeric limits interface 의 일부입니다.

매크로

CHAR_BIT
바이트의 비트 너비
(매크로 상수)
MB_LEN_MAX
멀티바이트 문자당 최대 바이트 수
(매크로 상수)
CHAR_MIN
char 의 최솟값
(매크로 상수)
CHAR_MAX
char 의 최댓값
(매크로 상수)
SCHAR_MIN SHRT_MIN INT_MIN LONG_MIN LLONG_MIN
(C++11)
각각 signed char , short , int , long 및 long long 의 최솟값
(매크로 상수)
SCHAR_MAX SHRT_MAX INT_MAX LONG_MAX LLONG_MAX
(C++11)
각각 signed char , short , int , long 및 long long 의 최댓값
(매크로 상수)
UCHAR_MAX USHRT_MAX UINT_MAX ULONG_MAX ULLONG_MAX
(C++11)
각각 unsigned char , unsigned short , unsigned int ,
unsigned long 및 unsigned long long 의 최댓값
(매크로 상수)

개요

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