VSF Documented
inttypes.h
Go to the documentation of this file.
1#include <stdint.h>
2
3/* fprintf macros for signed integers */
4#define PRId8 "d" /* int8_t */
5#define PRId16 "d" /* int16_t */
6#define PRId32 "d" /* int32_t */
7#define PRId64 "lld" /* int64_t */
8
9#define PRIdLEAST8 "d" /* int_least8_t */
10#define PRIdLEAST16 "d" /* int_least16_t */
11#define PRIdLEAST32 "d" /* int_least32_t */
12#define PRIdLEAST64 "lld" /* int_least64_t */
13
14#define PRIdFAST8 "d" /* int_fast8_t */
15#define PRIdFAST16 "d" /* int_fast16_t */
16#define PRIdFAST32 "d" /* int_fast32_t */
17#define PRIdFAST64 "lld" /* int_fast64_t */
18
19#define PRIdMAX "jd" /* intmax_t */
20#define PRIdPTR "ld" /* intptr_t */
21
22#define PRIi8 "i" /* int8_t */
23#define PRIi16 "i" /* int16_t */
24#define PRIi32 "i" /* int32_t */
25#define PRIi64 "lli" /* int64_t */
26
27#define PRIiLEAST8 "i" /* int_least8_t */
28#define PRIiLEAST16 "i" /* int_least16_t */
29#define PRIiLEAST32 "i" /* int_least32_t */
30#define PRIiLEAST64 "lli" /* int_least64_t */
31
32#define PRIiFAST8 "i" /* int_fast8_t */
33#define PRIiFAST16 "i" /* int_fast16_t */
34#define PRIiFAST32 "i" /* int_fast32_t */
35#define PRIiFAST64 "lli" /* int_fast64_t */
36
37#define PRIiMAX "ji" /* intmax_t */
38#define PRIiPTR "li" /* intptr_t */
39
40/* fprintf macros for unsigned integers */
41#define PRIo8 "o" /* int8_t */
42#define PRIo16 "o" /* int16_t */
43#define PRIo32 "o" /* int32_t */
44#define PRIo64 "llo" /* int64_t */
45
46#define PRIoLEAST8 "o" /* int_least8_t */
47#define PRIoLEAST16 "o" /* int_least16_t */
48#define PRIoLEAST32 "o" /* int_least32_t */
49#define PRIoLEAST64 "llo" /* int_least64_t */
50
51#define PRIoFAST8 "o" /* int_fast8_t */
52#define PRIoFAST16 "o" /* int_fast16_t */
53#define PRIoFAST32 "o" /* int_fast32_t */
54#define PRIoFAST64 "llo" /* int_fast64_t */
55
56#define PRIoMAX "jo" /* intmax_t */
57#define PRIoPTR "lo" /* intptr_t */
58
59#define PRIu8 "u" /* uint8_t */
60#define PRIu16 "u" /* uint16_t */
61#define PRIu32 "u" /* uint32_t */
62#define PRIu64 "llu" /* uint64_t */
63
64#define PRIuLEAST8 "u" /* uint_least8_t */
65#define PRIuLEAST16 "u" /* uint_least16_t */
66#define PRIuLEAST32 "u" /* uint_least32_t */
67#define PRIuLEAST64 "llu" /* uint_least64_t */
68
69#define PRIuFAST8 "u" /* uint_fast8_t */
70#define PRIuFAST16 "u" /* uint_fast16_t */
71#define PRIuFAST32 "u" /* uint_fast32_t */
72#define PRIuFAST64 "llu" /* uint_fast64_t */
73
74#define PRIuMAX "ju" /* uintmax_t */
75#define PRIuPTR "lu" /* uintptr_t */
76
77#define PRIx8 "x" /* uint8_t */
78#define PRIx16 "x" /* uint16_t */
79#define PRIx32 "x" /* uint32_t */
80#define PRIx64 "llx" /* uint64_t */
81
82#define PRIxLEAST8 "x" /* uint_least8_t */
83#define PRIxLEAST16 "x" /* uint_least16_t */
84#define PRIxLEAST32 "x" /* uint_least32_t */
85#define PRIxLEAST64 "llx" /* uint_least64_t */
86
87#define PRIxFAST8 "x" /* uint_fast8_t */
88#define PRIxFAST16 "x" /* uint_fast16_t */
89#define PRIxFAST32 "x" /* uint_fast32_t */
90#define PRIxFAST64 "llx" /* uint_fast64_t */
91
92#define PRIxMAX "jx" /* uintmax_t */
93#define PRIxPTR "lx" /* uintptr_t */
94
95#define PRIX8 "X" /* uint8_t */
96#define PRIX16 "X" /* uint16_t */
97#define PRIX32 "X" /* uint32_t */
98#define PRIX64 "llX" /* uint64_t */
99
100#define PRIXLEAST8 "X" /* uint_least8_t */
101#define PRIXLEAST16 "X" /* uint_least16_t */
102#define PRIXLEAST32 "X" /* uint_least32_t */
103#define PRIXLEAST64 "llX" /* uint_least64_t */
104
105#define PRIXFAST8 "X" /* uint_fast8_t */
106#define PRIXFAST16 "X" /* uint_fast16_t */
107#define PRIXFAST32 "X" /* uint_fast32_t */
108#define PRIXFAST64 "llX" /* uint_fast64_t */
109
110#define PRIXMAX "jX" /* uintmax_t */
111#define PRIXPTR "lX" /* uintptr_t */
112
113/* fscanf macros for signed integers */
114#define SCNd8 "hhd" /* int8_t */
115#define SCNd16 "hd" /* int16_t */
116#define SCNd32 "d" /* int32_t */
117#define SCNd64 "lld" /* int64_t */
118
119#define SCNdLEAST8 "hhd" /* int_least8_t */
120#define SCNdLEAST16 "hd" /* int_least16_t */
121#define SCNdLEAST32 "d" /* int_least32_t */
122#define SCNdLEAST64 "lld" /* int_least64_t */
123
124#define SCNdFAST8 "d" /* int_fast8_t */
125#define SCNdFAST16 "d" /* int_fast16_t */
126#define SCNdFAST32 "d" /* int_fast32_t */
127#define SCNdFAST64 "lld" /* int_fast64_t */
128
129#define SCNdMAX "jd" /* intmax_t */
130#define SCNdPTR "ld" /* intptr_t */
131
132#define SCNi8 "hhi" /* int8_t */
133#define SCNi16 "hi" /* int16_t */
134#define SCNi32 "i" /* int32_t */
135#define SCNi64 "lli" /* int64_t */
136
137#define SCNiLEAST8 "hhi" /* int_least8_t */
138#define SCNiLEAST16 "hi" /* int_least16_t */
139#define SCNiLEAST32 "i" /* int_least32_t */
140#define SCNiLEAST64 "lli" /* int_least64_t */
141
142#define SCNiFAST8 "i" /* int_fast8_t */
143#define SCNiFAST16 "i" /* int_fast16_t */
144#define SCNiFAST32 "i" /* int_fast32_t */
145#define SCNiFAST64 "lli" /* int_fast64_t */
146
147#define SCNiMAX "ji" /* intmax_t */
148#define SCNiPTR "li" /* intptr_t */
149
150/* fscanf macros for unsigned integers */
151#define SCNo8 "hho" /* uint8_t */
152#define SCNo16 "ho" /* uint16_t */
153#define SCNo32 "o" /* uint32_t */
154#define SCNo64 "llo" /* uint64_t */
155
156#define SCNoLEAST8 "hho" /* uint_least8_t */
157#define SCNoLEAST16 "ho" /* uint_least16_t */
158#define SCNoLEAST32 "o" /* uint_least32_t */
159#define SCNoLEAST64 "llo" /* uint_least64_t */
160
161#define SCNoFAST8 "o" /* uint_fast8_t */
162#define SCNoFAST16 "o" /* uint_fast16_t */
163#define SCNoFAST32 "o" /* uint_fast32_t */
164#define SCNoFAST64 "llo" /* uint_fast64_t */
165
166#define SCNoMAX "jo" /* uintmax_t */
167#define SCNoPTR "lo" /* uintptr_t */
168
169#define SCNu8 "hhu" /* uint8_t */
170#define SCNu16 "hu" /* uint16_t */
171#define SCNu32 "u" /* uint32_t */
172#define SCNu64 "llu" /* uint64_t */
173
174#define SCNuLEAST8 "hhu" /* uint_least8_t */
175#define SCNuLEAST16 "hu" /* uint_least16_t */
176#define SCNuLEAST32 "u" /* uint_least32_t */
177#define SCNuLEAST64 "llu" /* uint_least64_t */
178
179#define SCNuFAST8 "u" /* uint_fast8_t */
180#define SCNuFAST16 "u" /* uint_fast16_t */
181#define SCNuFAST32 "u" /* uint_fast32_t */
182#define SCNuFAST64 "llu" /* uint_fast64_t */
183
184#define SCNuMAX "ju" /* uintmax_t */
185#define SCNuPTR "lu" /* uintptr_t */
186
187#define SCNx8 "hhx" /* uint8_t */
188#define SCNx16 "hx" /* uint16_t */
189#define SCNx32 "x" /* uint32_t */
190#define SCNx64 "llx" /* uint64_t */
191
192#define SCNxLEAST8 "hhx" /* uint_least8_t */
193#define SCNxLEAST16 "hx" /* uint_least16_t */
194#define SCNxLEAST32 "x" /* uint_least32_t */
195#define SCNxLEAST64 "llx" /* uint_least64_t */
196
197#define SCNxFAST8 "x" /* uint_fast8_t */
198#define SCNxFAST16 "x" /* uint_fast16_t */
199#define SCNxFAST32 "x" /* uint_fast32_t */
200#define SCNxFAST64 "llx" /* uint_fast64_t */
201
202#define SCNxMAX "jx" /* uintmax_t */
203#define SCNxPTR "lx" /* uintptr_t */