Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Standard library header <limits.h>

      From cppreference.com
      <c‎ |header
       
       
       

      This header is part of thetype support library, in particular it's part of the Cnumeric limits interface.

      Limits of core language integer types
      BOOL_WIDTH
      (C23)
      bit width of_Bool
      (macro constant)
      BOOL_MAX
      (C29)
      maximum value of_Bool
      (macro constant)
      CHAR_BIT
      bit width of byte
      (macro constant)[edit]
      MB_LEN_MAX
      maximum number of bytes in a multibyte character
      (macro constant)[edit]
      CHAR_WIDTH
      (C23)
      bit width ofchar, same asCHAR_BIT
      (macro constant)
      CHAR_MIN
      minimum value ofchar
      (macro constant)[edit]
      CHAR_MAX
      maximum value ofchar
      (macro constant)[edit]
      SCHAR_WIDTHSHRT_WIDTHINT_WIDTHLONG_WIDTHLLONG_WIDTH
      (C23)(C23)(C23)(C23)(C23)
      bit width ofsignedchar,short,int,long, andlonglong respectively
      (macro constant)
      SCHAR_MINSHRT_MININT_MINLONG_MINLLONG_MIN
      (C99)
      minimum value ofsignedchar,short,int,long andlonglong respectively
      (macro constant)[edit]
      SCHAR_MAXSHRT_MAXINT_MAXLONG_MAXLLONG_MAX
      (C99)
      maximum value ofsignedchar,short,int,long andlonglong respectively
      (macro constant)[edit]
      UCHAR_WIDTHUSHRT_WIDTHUINT_WIDTHULONG_WIDTHULLONG_WIDTH
      (C23)(C23)(C23)(C23)(C23)
      bit width ofunsignedchar,unsignedshort,unsignedint,unsignedlong, andunsignedlonglong respectively
      (macro constant)
      UCHAR_MAXUSHRT_MAXUINT_MAXULONG_MAXULLONG_MAX
      (C99)
      maximum value ofunsignedchar,unsignedshort,unsignedint,
      unsignedlong andunsignedlonglong respectively
      (macro constant)[edit]
      BITINT_MAXWIDTH
      (C23)
      maximum widthN supported by the declaration of a bit-precise integer in the type specifier_BitInt(N), greater than or equal toULLONG_WIDTH
      (macro constant)

      [edit]Synopsis

      #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 */
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/header/limits&oldid=180063"

      [8]ページ先頭

      ©2009-2025 Movatter.jp