|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This header is part of thetype support library, in particular, it is a part offormat conversion of integer types interface.
Includes | ||
(C99) | Fixed-width integer types[edit] | |
Types | ||
(C99) | structure type, return of theimaxdiv function (typedef)[edit] | |
Functions | ||
(C99) | computes absolute value of an integral value (\(\small{|x|}\)|x|) (function)[edit] | |
(C99) | computes quotient and remainder of integer division (function)[edit] | |
(C99)(C99) | converts a byte string tointmax_t oruintmax_t (function)[edit] | |
(C99)(C99) | converts a wide string tointmax_t oruintmax_t (function)[edit] | |
Macros | ||
Format constants for thefprintf family of functions | ||
PRId8PRId16PRId32PRId64PRIdLEAST8PRIdLEAST16PRIdLEAST32PRIdLEAST64PRIdFAST8PRIdFAST16PRIdFAST32PRIdFAST64PRIdMAXPRIdPTR (C99) | format conversion specifier to output a signed decimal integer value of typeint8_t,int16_t,int32_t,int64_t,int_least8_t,int_least16_t,int_least32_t,int_least64_t,int_fast8_t,int_fast16_t,int_fast32_t,int_fast64_t,intmax_t,intptr_t respectively, equivalent tod forint(macro constant) | |
PRIi8PRIi16PRIi32PRIi64PRIiLEAST8PRIiLEAST16PRIiLEAST32PRIiLEAST64PRIiFAST8PRIiFAST16PRIiFAST32PRIiFAST64PRIiMAXPRIiPTR (C99) | format conversion specifier to output a signed decimal integer value of typeint8_t,int16_t,int32_t,int64_t,int_least8_t,int_least16_t,int_least32_t,int_least64_t,int_fast8_t,int_fast16_t,int_fast32_t,int_fast64_t,intmax_t,intptr_t respectively, equivalent toi forint(macro constant) | |
PRIu8PRIu16PRIu32PRIu64PRIuLEAST8PRIuLEAST16PRIuLEAST32PRIuLEAST64PRIuFAST8PRIuFAST16PRIuFAST32PRIuFAST64PRIuMAXPRIuPTR (C99) | format conversion specifier to output an unsigned decimal integer value of typeuint8_t,uint16_t,uint32_t,uint64_t,uint_least8_t,uint_least16_t,uint_least32_t,uint_least64_t,uint_fast8_t,uint_fast16_t,uint_fast32_t,uint_fast64_t,uintmax_t,uintptr_t respectively, equivalent tou forunsignedint(macro constant) | |
PRIo8PRIo16PRIo32PRIo64PRIoLEAST8PRIoLEAST16PRIoLEAST32PRIoLEAST64PRIoFAST8PRIoFAST16PRIoFAST32PRIoFAST64PRIoMAXPRIoPTR (C99) | format conversion specifier to output an unsigned octal integer value of typeuint8_t,uint16_t,uint32_t,uint64_t,uint_least8_t,uint_least16_t,uint_least32_t,uint_least64_t,uint_fast8_t,uint_fast16_t,uint_fast32_t,uint_fast64_t,uintmax_t,uintptr_t respectively, equivalent too forunsignedint(macro constant) | |
PRIx8PRIx16PRIx32PRIx64PRIxLEAST8PRIxLEAST16PRIxLEAST32PRIxLEAST64PRIxFAST8PRIxFAST16PRIxFAST32PRIxFAST64PRIxMAXPRIxPTR (C99) | format conversion specifier to output an unsigned lowercase hexadecimal integer value of typeuint8_t,uint16_t,uint32_t,uint64_t,uint_least8_t,uint_least16_t,uint_least32_t,uint_least64_t,uint_fast8_t,uint_fast16_t,uint_fast32_t,uint_fast64_t,uintmax_t,uintptr_t respectively, equivalent tox forunsignedint(macro constant) | |
PRIX8PRIX16PRIX32PRIX64PRIXLEAST8PRIXLEAST16PRIXLEAST32PRIXLEAST64PRIXFAST8PRIXFAST16PRIXFAST32PRIXFAST64PRIXMAXPRIXPTR (C99) | format conversion specifier to output an unsigned uppercase hexadecimal integer value of typeuint8_t,uint16_t,uint32_t,uint64_t,uint_least8_t,uint_least16_t,uint_least32_t,uint_least64_t,uint_fast8_t,uint_fast16_t,uint_fast32_t,uint_fast64_t,uintmax_t,uintptr_t respectively, equivalent toX forunsignedint(macro constant) | |
Format constants for thefscanf family of functions | ||
SCNd8SCNd16SCNd32SCNd64SCNdLEAST8SCNdLEAST16SCNdLEAST32SCNdLEAST64SCNdFAST8SCNdFAST16SCNdFAST32SCNdFAST64SCNdMAXSCNdPTR (C99) | format conversion specifier to input a signed decimal integer value of typeint8_t,int16_t,int32_t,int64_t,int_least8_t,int_least16_t,int_least32_t,int_least64_t,int_fast8_t,int_fast16_t,int_fast32_t,int_fast64_t,intmax_t,intptr_t respectively, equivalent tod forint(macro constant) | |
SCNi8SCNi16SCNi32SCNi64SCNiLEAST8SCNiLEAST16SCNiLEAST32SCNiLEAST64SCNiFAST8SCNiFAST16SCNiFAST32SCNiFAST64SCNiMAXSCNiPTR (C99) | format conversion specifier to input a signed decimal/octal/hexadecimal integer value of typeint8_t,int16_t,int32_t,int64_t,int_least8_t,int_least16_t,int_least32_t,int_least64_t,int_fast8_t,int_fast16_t,int_fast32_t,int_fast64_t,intmax_t,intptr_t respectively, equivalent toi forint(macro constant) | |
SCNu8SCNu16SCNu32SCNu64SCNuLEAST8SCNuLEAST16SCNuLEAST32SCNuLEAST64SCNuFAST8SCNuFAST16SCNuFAST32SCNuFAST64SCNuMAXSCNuPTR (C99) | format conversion specifier to input an unsigned decimal integer value of typeuint8_t,uint16_t,uint32_t,uint64_t,uint_least8_t,uint_least16_t,uint_least32_t,uint_least64_t,uint_fast8_t,uint_fast16_t,uint_fast32_t,uint_fast64_t,uintmax_t,uintptr_t respectively, equivalent tou forunsignedint(macro constant) | |
SCNo8SCNo16SCNo32SCNo64SCNoLEAST8SCNoLEAST16SCNoLEAST32SCNoLEAST64SCNoFAST8SCNoFAST16SCNoFAST32SCNoFAST64SCNoMAXSCNoPTR (C99) | format conversion specifier to input an unsigned octal integer value of typeuint8_t,uint16_t,uint32_t,uint64_t,uint_least8_t,uint_least16_t,uint_least32_t,uint_least64_t,uint_fast8_t,uint_fast16_t,uint_fast32_t,uint_fast64_t,uintmax_t,uintptr_t respectively, equivalent too forunsignedint(macro constant) | |
SCNx8SCNx16SCNx32SCNx64SCNxLEAST8SCNxLEAST16SCNxLEAST32SCNxLEAST64SCNxFAST8SCNxFAST16SCNxFAST32SCNxFAST64SCNxMAXSCNxPTR (C99) | format conversion specifier to input an unsigned hexadecimal integer value of typeuint8_t,uint16_t,uint32_t,uint64_t,uint_least8_t,uint_least16_t,uint_least32_t,uint_least64_t,uint_fast8_t,uint_fast16_t,uint_fast32_t,uint_fast64_t,uintmax_t,uintptr_t respectively, equivalent tox forunsignedint(macro constant) | |
using imaxdiv_t=/* see description */; intmax_t imaxabs(intmax_t j);imaxdiv_t imaxdiv(intmax_t numer,intmax_t denom);intmax_tstrtoimax(constchar*restrict nptr,char**restrict endptr,int base);uintmax_tstrtoumax(constchar*restrict nptr,char**restrict endptr,int base);intmax_twcstoimax(constwchar_t*restrict nptr,wchar_t**restrict endptr,int base);uintmax_twcstoumax(constwchar_t*restrict nptr,wchar_t**restrict endptr,int base); #define PRIdN /* see description */#define PRIiN /* see description */#define PRIoN /* see description */#define PRIuN /* see description */#define PRIxN /* see description */#define PRIXN /* see description */#define SCNdN /* see description */#define SCNiN /* see description */#define SCNoN /* see description */#define SCNuN /* see description */#define SCNxN /* see description */#define PRIdLEASTN /* see description */#define PRIiLEASTN /* see description */#define PRIoLEASTN /* see description */#define PRIuLEASTN /* see description */#define PRIxLEASTN /* see description */#define PRIXLEASTN /* see description */#define SCNdLEASTN /* see description */#define SCNiLEASTN /* see description */#define SCNoLEASTN /* see description */#define SCNuLEASTN /* see description */#define SCNxLEASTN /* see description */#define PRIdFASTN /* see description */#define PRIiFASTN /* see description */#define PRIoFASTN /* see description */#define PRIuFASTN /* see description */#define PRIxFASTN /* see description */#define PRIXFASTN /* see description */#define SCNdFASTN /* see description */#define SCNiFASTN /* see description */#define SCNoFASTN /* see description */#define SCNuFASTN /* see description */#define SCNxFASTN /* see description */#define PRIdMAX /* see description */#define PRIiMAX /* see description */#define PRIoMAX /* see description */#define PRIuMAX /* see description */#define PRIxMAX /* see description */#define PRIXMAX /* see description */#define SCNdMAX /* see description */#define SCNiMAX /* see description */#define SCNoMAX /* see description */#define SCNuMAX /* see description */#define SCNxMAX /* see description */#define PRIdPTR /* see description */#define PRIiPTR /* see description */#define PRIoPTR /* see description */#define PRIuPTR /* see description */#define PRIxPTR /* see description */#define PRIXPTR /* see description */#define SCNdPTR /* see description */#define SCNiPTR /* see description */#define SCNoPTR /* see description */#define SCNuPTR /* see description */#define SCNxPTR /* see description */