HP-UX Reference (11i v2 04/09) - 5 Miscellaneous Topics (vol 9)

i
inttypes(5) inttypes(5)
PRIXFAST32 X print formatting option for int_fast32_t
PRIXFAST64 X print formatting option for int_fast64_t
PRIXLEAST8 X print formatting option for int_least8_t
PRIXLEAST16 X print formatting option for int_least16_t
PRIXLEAST32 X print formatting option for int_least32_t
PRIXLEAST64 X print formatting option for int_least64_t
The following macros can be used as formatting options with the
scanf() family of functions (see
scanf (3S)). These macros are used to select the correct formatting option for the integer data types
defined earlier in this manual page.
SCNd16 d scan formatting option for int16_t
SCNd32 d scan formatting option for int32_t
SCNd64 d scan formatting option for int64_t
SCNdMAX d scan formatting option for intmax_t
SCNi16 i scan formatting option for int16_t
SCNi32 i scan formatting option for int32_t
SCNi64 i scan formatting option for int64_t
SCNiMAX i scan formatting option for intmax_t
SCNu16 u scan formatting option for uint16_t
SCNu32 u scan formatting option for uint32_t
SCNu64 u scan formatting option for uint64_t
SCNo16 o scan formatting option for int16_t
SCNo32 o scan formatting option for int32_t
SCNo64 o scan formatting option for int64_t
SCNoMAX o scan formatting option for intmax_t
SCNx16 x scan formatting option for int16_t
SCNx32 x scan formatting option for int32_t
SCNx64 x scan formatting option for int64_t
SCNxMAX x scan formatting option for intmax_t
SCNdFAST d scan formatting option for intfast_t
SCNiFAST i scan formatting option for intfast_t
SCNoFAST o scan formatting option for intfast_t
SCNxFAST x scan formatting option for intfast_t
NOTES
The formatting options for the printf() family of functions all begin with PRI, whereas the formatting
options for the scanf() family of functions all begin with SCN. These formatting strings may not be
interchangeable.
EXAMPLES
The following example shows how to use one of the print formatting options with the
printf() function.
uint64_t u;
...
printf("u = %016" PRIx64 "\n", u);
AUTHOR
inttypes.h was developed by HP.
FILES
/usr/include/inttypes.h
SEE ALSO
printf(3S), scanf(3S).
HP-UX 11i Version 2: September 2004 4 Hewlett-Packard Company Section 5149