Classes | Macros | Functions
inttypes.h File Reference
#include "stdint.h"

Go to the source code of this file.

Classes

struct  imaxdiv_t
 

Macros

#define PRId8   "d"
 
#define PRIi8   "i"
 
#define PRIdLEAST8   "d"
 
#define PRIiLEAST8   "i"
 
#define PRIdFAST8   "d"
 
#define PRIiFAST8   "i"
 
#define PRId16   "hd"
 
#define PRIi16   "hi"
 
#define PRIdLEAST16   "hd"
 
#define PRIiLEAST16   "hi"
 
#define PRIdFAST16   "hd"
 
#define PRIiFAST16   "hi"
 
#define PRId32   "I32d"
 
#define PRIi32   "I32i"
 
#define PRIdLEAST32   "I32d"
 
#define PRIiLEAST32   "I32i"
 
#define PRIdFAST32   "I32d"
 
#define PRIiFAST32   "I32i"
 
#define PRId64   "I64d"
 
#define PRIi64   "I64i"
 
#define PRIdLEAST64   "I64d"
 
#define PRIiLEAST64   "I64i"
 
#define PRIdFAST64   "I64d"
 
#define PRIiFAST64   "I64i"
 
#define PRIdMAX   "I64d"
 
#define PRIiMAX   "I64i"
 
#define PRIdPTR   "Id"
 
#define PRIiPTR   "Ii"
 
#define PRIo8   "o"
 
#define PRIu8   "u"
 
#define PRIx8   "x"
 
#define PRIX8   "X"
 
#define PRIoLEAST8   "o"
 
#define PRIuLEAST8   "u"
 
#define PRIxLEAST8   "x"
 
#define PRIXLEAST8   "X"
 
#define PRIoFAST8   "o"
 
#define PRIuFAST8   "u"
 
#define PRIxFAST8   "x"
 
#define PRIXFAST8   "X"
 
#define PRIo16   "ho"
 
#define PRIu16   "hu"
 
#define PRIx16   "hx"
 
#define PRIX16   "hX"
 
#define PRIoLEAST16   "ho"
 
#define PRIuLEAST16   "hu"
 
#define PRIxLEAST16   "hx"
 
#define PRIXLEAST16   "hX"
 
#define PRIoFAST16   "ho"
 
#define PRIuFAST16   "hu"
 
#define PRIxFAST16   "hx"
 
#define PRIXFAST16   "hX"
 
#define PRIo32   "I32o"
 
#define PRIu32   "I32u"
 
#define PRIx32   "I32x"
 
#define PRIX32   "I32X"
 
#define PRIoLEAST32   "I32o"
 
#define PRIuLEAST32   "I32u"
 
#define PRIxLEAST32   "I32x"
 
#define PRIXLEAST32   "I32X"
 
#define PRIoFAST32   "I32o"
 
#define PRIuFAST32   "I32u"
 
#define PRIxFAST32   "I32x"
 
#define PRIXFAST32   "I32X"
 
#define PRIo64   "I64o"
 
#define PRIu64   "I64u"
 
#define PRIx64   "I64x"
 
#define PRIX64   "I64X"
 
#define PRIoLEAST64   "I64o"
 
#define PRIuLEAST64   "I64u"
 
#define PRIxLEAST64   "I64x"
 
#define PRIXLEAST64   "I64X"
 
#define PRIoFAST64   "I64o"
 
#define PRIuFAST64   "I64u"
 
#define PRIxFAST64   "I64x"
 
#define PRIXFAST64   "I64X"
 
#define PRIoMAX   "I64o"
 
#define PRIuMAX   "I64u"
 
#define PRIxMAX   "I64x"
 
#define PRIXMAX   "I64X"
 
#define PRIoPTR   "Io"
 
#define PRIuPTR   "Iu"
 
#define PRIxPTR   "Ix"
 
#define PRIXPTR   "IX"
 
#define SCNd8   "d"
 
#define SCNi8   "i"
 
#define SCNdLEAST8   "d"
 
#define SCNiLEAST8   "i"
 
#define SCNdFAST8   "d"
 
#define SCNiFAST8   "i"
 
#define SCNd16   "hd"
 
#define SCNi16   "hi"
 
#define SCNdLEAST16   "hd"
 
#define SCNiLEAST16   "hi"
 
#define SCNdFAST16   "hd"
 
#define SCNiFAST16   "hi"
 
#define SCNd32   "ld"
 
#define SCNi32   "li"
 
#define SCNdLEAST32   "ld"
 
#define SCNiLEAST32   "li"
 
#define SCNdFAST32   "ld"
 
#define SCNiFAST32   "li"
 
#define SCNd64   "I64d"
 
#define SCNi64   "I64i"
 
#define SCNdLEAST64   "I64d"
 
#define SCNiLEAST64   "I64i"
 
#define SCNdFAST64   "I64d"
 
#define SCNiFAST64   "I64i"
 
#define SCNdMAX   "I64d"
 
#define SCNiMAX   "I64i"
 
#define SCNdPTR   "ld"
 
#define SCNiPTR   "li"
 
#define SCNo8   "o"
 
#define SCNu8   "u"
 
#define SCNx8   "x"
 
#define SCNX8   "X"
 
#define SCNoLEAST8   "o"
 
#define SCNuLEAST8   "u"
 
#define SCNxLEAST8   "x"
 
#define SCNXLEAST8   "X"
 
#define SCNoFAST8   "o"
 
#define SCNuFAST8   "u"
 
#define SCNxFAST8   "x"
 
#define SCNXFAST8   "X"
 
#define SCNo16   "ho"
 
#define SCNu16   "hu"
 
#define SCNx16   "hx"
 
#define SCNX16   "hX"
 
#define SCNoLEAST16   "ho"
 
#define SCNuLEAST16   "hu"
 
#define SCNxLEAST16   "hx"
 
#define SCNXLEAST16   "hX"
 
#define SCNoFAST16   "ho"
 
#define SCNuFAST16   "hu"
 
#define SCNxFAST16   "hx"
 
#define SCNXFAST16   "hX"
 
#define SCNo32   "lo"
 
#define SCNu32   "lu"
 
#define SCNx32   "lx"
 
#define SCNX32   "lX"
 
#define SCNoLEAST32   "lo"
 
#define SCNuLEAST32   "lu"
 
#define SCNxLEAST32   "lx"
 
#define SCNXLEAST32   "lX"
 
#define SCNoFAST32   "lo"
 
#define SCNuFAST32   "lu"
 
#define SCNxFAST32   "lx"
 
#define SCNXFAST32   "lX"
 
#define SCNo64   "I64o"
 
#define SCNu64   "I64u"
 
#define SCNx64   "I64x"
 
#define SCNX64   "I64X"
 
#define SCNoLEAST64   "I64o"
 
#define SCNuLEAST64   "I64u"
 
#define SCNxLEAST64   "I64x"
 
#define SCNXLEAST64   "I64X"
 
#define SCNoFAST64   "I64o"
 
#define SCNuFAST64   "I64u"
 
#define SCNxFAST64   "I64x"
 
#define SCNXFAST64   "I64X"
 
#define SCNoMAX   "I64o"
 
#define SCNuMAX   "I64u"
 
#define SCNxMAX   "I64x"
 
#define SCNXMAX   "I64X"
 
#define SCNoPTR   "lo"
 
#define SCNuPTR   "lu"
 
#define SCNxPTR   "lx"
 
#define SCNXPTR   "lX"
 
#define imaxabs   _abs64
 
#define strtoimax   _strtoi64
 
#define strtoumax   _strtoui64
 
#define wcstoimax   _wcstoi64
 
#define wcstoumax   _wcstoui64
 

Functions

_inline imaxdiv_t __cdecl imaxdiv (intmax_t numer, intmax_t denom)
 

Macro Definition Documentation

#define imaxabs   _abs64

Definition at line 279 of file inttypes.h.

#define PRId16   "hd"

Definition at line 74 of file inttypes.h.

#define PRId32   "I32d"

Definition at line 81 of file inttypes.h.

#define PRId64   "I64d"

Definition at line 88 of file inttypes.h.

#define PRId8   "d"

Definition at line 67 of file inttypes.h.

#define PRIdFAST16   "hd"

Definition at line 78 of file inttypes.h.

#define PRIdFAST32   "I32d"

Definition at line 85 of file inttypes.h.

#define PRIdFAST64   "I64d"

Definition at line 92 of file inttypes.h.

#define PRIdFAST8   "d"

Definition at line 71 of file inttypes.h.

#define PRIdLEAST16   "hd"

Definition at line 76 of file inttypes.h.

#define PRIdLEAST32   "I32d"

Definition at line 83 of file inttypes.h.

#define PRIdLEAST64   "I64d"

Definition at line 90 of file inttypes.h.

#define PRIdLEAST8   "d"

Definition at line 69 of file inttypes.h.

#define PRIdMAX   "I64d"

Definition at line 95 of file inttypes.h.

#define PRIdPTR   "Id"

Definition at line 98 of file inttypes.h.

#define PRIi16   "hi"

Definition at line 75 of file inttypes.h.

#define PRIi32   "I32i"

Definition at line 82 of file inttypes.h.

#define PRIi64   "I64i"

Definition at line 89 of file inttypes.h.

#define PRIi8   "i"

Definition at line 68 of file inttypes.h.

#define PRIiFAST16   "hi"

Definition at line 79 of file inttypes.h.

#define PRIiFAST32   "I32i"

Definition at line 86 of file inttypes.h.

#define PRIiFAST64   "I64i"

Definition at line 93 of file inttypes.h.

#define PRIiFAST8   "i"

Definition at line 72 of file inttypes.h.

#define PRIiLEAST16   "hi"

Definition at line 77 of file inttypes.h.

#define PRIiLEAST32   "I32i"

Definition at line 84 of file inttypes.h.

#define PRIiLEAST64   "I64i"

Definition at line 91 of file inttypes.h.

#define PRIiLEAST8   "i"

Definition at line 70 of file inttypes.h.

#define PRIiMAX   "I64i"

Definition at line 96 of file inttypes.h.

#define PRIiPTR   "Ii"

Definition at line 99 of file inttypes.h.

#define PRIo16   "ho"

Definition at line 115 of file inttypes.h.

#define PRIo32   "I32o"

Definition at line 128 of file inttypes.h.

#define PRIo64   "I64o"

Definition at line 141 of file inttypes.h.

#define PRIo8   "o"

Definition at line 102 of file inttypes.h.

#define PRIoFAST16   "ho"

Definition at line 123 of file inttypes.h.

#define PRIoFAST32   "I32o"

Definition at line 136 of file inttypes.h.

#define PRIoFAST64   "I64o"

Definition at line 149 of file inttypes.h.

#define PRIoFAST8   "o"

Definition at line 110 of file inttypes.h.

#define PRIoLEAST16   "ho"

Definition at line 119 of file inttypes.h.

#define PRIoLEAST32   "I32o"

Definition at line 132 of file inttypes.h.

#define PRIoLEAST64   "I64o"

Definition at line 145 of file inttypes.h.

#define PRIoLEAST8   "o"

Definition at line 106 of file inttypes.h.

#define PRIoMAX   "I64o"

Definition at line 154 of file inttypes.h.

#define PRIoPTR   "Io"

Definition at line 159 of file inttypes.h.

#define PRIu16   "hu"

Definition at line 116 of file inttypes.h.

#define PRIu32   "I32u"

Definition at line 129 of file inttypes.h.

#define PRIu64   "I64u"

Definition at line 142 of file inttypes.h.

#define PRIu8   "u"

Definition at line 103 of file inttypes.h.

#define PRIuFAST16   "hu"

Definition at line 124 of file inttypes.h.

#define PRIuFAST32   "I32u"

Definition at line 137 of file inttypes.h.

#define PRIuFAST64   "I64u"

Definition at line 150 of file inttypes.h.

#define PRIuFAST8   "u"

Definition at line 111 of file inttypes.h.

#define PRIuLEAST16   "hu"

Definition at line 120 of file inttypes.h.

#define PRIuLEAST32   "I32u"

Definition at line 133 of file inttypes.h.

#define PRIuLEAST64   "I64u"

Definition at line 146 of file inttypes.h.

#define PRIuLEAST8   "u"

Definition at line 107 of file inttypes.h.

#define PRIuMAX   "I64u"

Definition at line 155 of file inttypes.h.

#define PRIuPTR   "Iu"

Definition at line 160 of file inttypes.h.

#define PRIx16   "hx"

Definition at line 117 of file inttypes.h.

#define PRIX16   "hX"

Definition at line 118 of file inttypes.h.

#define PRIx32   "I32x"

Definition at line 130 of file inttypes.h.

#define PRIX32   "I32X"

Definition at line 131 of file inttypes.h.

#define PRIx64   "I64x"

Definition at line 143 of file inttypes.h.

#define PRIX64   "I64X"

Definition at line 144 of file inttypes.h.

#define PRIx8   "x"

Definition at line 104 of file inttypes.h.

#define PRIX8   "X"

Definition at line 105 of file inttypes.h.

#define PRIxFAST16   "hx"

Definition at line 125 of file inttypes.h.

#define PRIXFAST16   "hX"

Definition at line 126 of file inttypes.h.

#define PRIxFAST32   "I32x"

Definition at line 138 of file inttypes.h.

#define PRIXFAST32   "I32X"

Definition at line 139 of file inttypes.h.

#define PRIxFAST64   "I64x"

Definition at line 151 of file inttypes.h.

#define PRIXFAST64   "I64X"

Definition at line 152 of file inttypes.h.

#define PRIxFAST8   "x"

Definition at line 112 of file inttypes.h.

#define PRIXFAST8   "X"

Definition at line 113 of file inttypes.h.

#define PRIxLEAST16   "hx"

Definition at line 121 of file inttypes.h.

#define PRIXLEAST16   "hX"

Definition at line 122 of file inttypes.h.

#define PRIxLEAST32   "I32x"

Definition at line 134 of file inttypes.h.

#define PRIXLEAST32   "I32X"

Definition at line 135 of file inttypes.h.

#define PRIxLEAST64   "I64x"

Definition at line 147 of file inttypes.h.

#define PRIXLEAST64   "I64X"

Definition at line 148 of file inttypes.h.

#define PRIxLEAST8   "x"

Definition at line 108 of file inttypes.h.

#define PRIXLEAST8   "X"

Definition at line 109 of file inttypes.h.

#define PRIxMAX   "I64x"

Definition at line 156 of file inttypes.h.

#define PRIXMAX   "I64X"

Definition at line 157 of file inttypes.h.

#define PRIxPTR   "Ix"

Definition at line 161 of file inttypes.h.

#define PRIXPTR   "IX"

Definition at line 162 of file inttypes.h.

#define SCNd16   "hd"

Definition at line 172 of file inttypes.h.

#define SCNd32   "ld"

Definition at line 179 of file inttypes.h.

#define SCNd64   "I64d"

Definition at line 186 of file inttypes.h.

#define SCNd8   "d"

Definition at line 165 of file inttypes.h.

#define SCNdFAST16   "hd"

Definition at line 176 of file inttypes.h.

#define SCNdFAST32   "ld"

Definition at line 183 of file inttypes.h.

#define SCNdFAST64   "I64d"

Definition at line 190 of file inttypes.h.

#define SCNdFAST8   "d"

Definition at line 169 of file inttypes.h.

#define SCNdLEAST16   "hd"

Definition at line 174 of file inttypes.h.

#define SCNdLEAST32   "ld"

Definition at line 181 of file inttypes.h.

#define SCNdLEAST64   "I64d"

Definition at line 188 of file inttypes.h.

#define SCNdLEAST8   "d"

Definition at line 167 of file inttypes.h.

#define SCNdMAX   "I64d"

Definition at line 193 of file inttypes.h.

#define SCNdPTR   "ld"

Definition at line 200 of file inttypes.h.

#define SCNi16   "hi"

Definition at line 173 of file inttypes.h.

#define SCNi32   "li"

Definition at line 180 of file inttypes.h.

#define SCNi64   "I64i"

Definition at line 187 of file inttypes.h.

#define SCNi8   "i"

Definition at line 166 of file inttypes.h.

#define SCNiFAST16   "hi"

Definition at line 177 of file inttypes.h.

#define SCNiFAST32   "li"

Definition at line 184 of file inttypes.h.

#define SCNiFAST64   "I64i"

Definition at line 191 of file inttypes.h.

#define SCNiFAST8   "i"

Definition at line 170 of file inttypes.h.

#define SCNiLEAST16   "hi"

Definition at line 175 of file inttypes.h.

#define SCNiLEAST32   "li"

Definition at line 182 of file inttypes.h.

#define SCNiLEAST64   "I64i"

Definition at line 189 of file inttypes.h.

#define SCNiLEAST8   "i"

Definition at line 168 of file inttypes.h.

#define SCNiMAX   "I64i"

Definition at line 194 of file inttypes.h.

#define SCNiPTR   "li"

Definition at line 201 of file inttypes.h.

#define SCNo16   "ho"

Definition at line 218 of file inttypes.h.

#define SCNo32   "lo"

Definition at line 231 of file inttypes.h.

#define SCNo64   "I64o"

Definition at line 244 of file inttypes.h.

#define SCNo8   "o"

Definition at line 205 of file inttypes.h.

#define SCNoFAST16   "ho"

Definition at line 226 of file inttypes.h.

#define SCNoFAST32   "lo"

Definition at line 239 of file inttypes.h.

#define SCNoFAST64   "I64o"

Definition at line 252 of file inttypes.h.

#define SCNoFAST8   "o"

Definition at line 213 of file inttypes.h.

#define SCNoLEAST16   "ho"

Definition at line 222 of file inttypes.h.

#define SCNoLEAST32   "lo"

Definition at line 235 of file inttypes.h.

#define SCNoLEAST64   "I64o"

Definition at line 248 of file inttypes.h.

#define SCNoLEAST8   "o"

Definition at line 209 of file inttypes.h.

#define SCNoMAX   "I64o"

Definition at line 257 of file inttypes.h.

#define SCNoPTR   "lo"

Definition at line 268 of file inttypes.h.

#define SCNu16   "hu"

Definition at line 219 of file inttypes.h.

#define SCNu32   "lu"

Definition at line 232 of file inttypes.h.

#define SCNu64   "I64u"

Definition at line 245 of file inttypes.h.

#define SCNu8   "u"

Definition at line 206 of file inttypes.h.

#define SCNuFAST16   "hu"

Definition at line 227 of file inttypes.h.

#define SCNuFAST32   "lu"

Definition at line 240 of file inttypes.h.

#define SCNuFAST64   "I64u"

Definition at line 253 of file inttypes.h.

#define SCNuFAST8   "u"

Definition at line 214 of file inttypes.h.

#define SCNuLEAST16   "hu"

Definition at line 223 of file inttypes.h.

#define SCNuLEAST32   "lu"

Definition at line 236 of file inttypes.h.

#define SCNuLEAST64   "I64u"

Definition at line 249 of file inttypes.h.

#define SCNuLEAST8   "u"

Definition at line 210 of file inttypes.h.

#define SCNuMAX   "I64u"

Definition at line 258 of file inttypes.h.

#define SCNuPTR   "lu"

Definition at line 269 of file inttypes.h.

#define SCNx16   "hx"

Definition at line 220 of file inttypes.h.

#define SCNX16   "hX"

Definition at line 221 of file inttypes.h.

#define SCNx32   "lx"

Definition at line 233 of file inttypes.h.

#define SCNX32   "lX"

Definition at line 234 of file inttypes.h.

#define SCNx64   "I64x"

Definition at line 246 of file inttypes.h.

#define SCNX64   "I64X"

Definition at line 247 of file inttypes.h.

#define SCNx8   "x"

Definition at line 207 of file inttypes.h.

#define SCNX8   "X"

Definition at line 208 of file inttypes.h.

#define SCNxFAST16   "hx"

Definition at line 228 of file inttypes.h.

#define SCNXFAST16   "hX"

Definition at line 229 of file inttypes.h.

#define SCNxFAST32   "lx"

Definition at line 241 of file inttypes.h.

#define SCNXFAST32   "lX"

Definition at line 242 of file inttypes.h.

#define SCNxFAST64   "I64x"

Definition at line 254 of file inttypes.h.

#define SCNXFAST64   "I64X"

Definition at line 255 of file inttypes.h.

#define SCNxFAST8   "x"

Definition at line 215 of file inttypes.h.

#define SCNXFAST8   "X"

Definition at line 216 of file inttypes.h.

#define SCNxLEAST16   "hx"

Definition at line 224 of file inttypes.h.

#define SCNXLEAST16   "hX"

Definition at line 225 of file inttypes.h.

#define SCNxLEAST32   "lx"

Definition at line 237 of file inttypes.h.

#define SCNXLEAST32   "lX"

Definition at line 238 of file inttypes.h.

#define SCNxLEAST64   "I64x"

Definition at line 250 of file inttypes.h.

#define SCNXLEAST64   "I64X"

Definition at line 251 of file inttypes.h.

#define SCNxLEAST8   "x"

Definition at line 211 of file inttypes.h.

#define SCNXLEAST8   "X"

Definition at line 212 of file inttypes.h.

#define SCNxMAX   "I64x"

Definition at line 259 of file inttypes.h.

#define SCNXMAX   "I64X"

Definition at line 260 of file inttypes.h.

#define SCNxPTR   "lx"

Definition at line 270 of file inttypes.h.

#define SCNXPTR   "lX"

Definition at line 271 of file inttypes.h.

#define strtoimax   _strtoi64

Definition at line 307 of file inttypes.h.

#define strtoumax   _strtoui64

Definition at line 308 of file inttypes.h.

#define wcstoimax   _wcstoi64

Definition at line 311 of file inttypes.h.

#define wcstoumax   _wcstoui64

Definition at line 312 of file inttypes.h.

Function Documentation

_inline imaxdiv_t __cdecl imaxdiv ( intmax_t  numer,
intmax_t  denom 
)

Definition at line 290 of file inttypes.h.

291 {
293 
294  result.quot = numer / denom;
295  result.rem = numer % denom;
296 
297  if (numer < 0 && result.rem > 0) {
298  // did division wrong; must fix up
299  ++result.quot;
300  result.rem -= denom;
301  }
302 
303  return result;
304 }
static QCString result
intmax_t rem
Definition: inttypes.h:59
intmax_t quot
Definition: inttypes.h:58