Inttypes.h: integer type conversions -
#include <inttypes.h>
This header file includes the exact-width integer definitions from <stdint.h>, and extends them with additional facilities provided by the implementation.
Currently, the extensions include two additional integer types that could hold a 'far' pointer (i.e. a code pointer that can address more than 64 KB), as well as standard names for all printf and scanf formatting options that are supported by the <stdio.h>: Standard IO facilities. As the library does not support the full range of conversion specifiers from ISO 9899:1999, only those conversions that are actually implemented will be listed here.
The idea behind these conversion macros is that, for each of the types defined by <stdint.h>, a macro will be supplied that portably allows formatting an object of that type in printf() or scanf() operations. Example:
#include <inttypes.h> uint8_t smallval; int32_t longval; ... printf("The hexadecimal value of smallval is %" PRIx8 ", the decimal value of longval is %" PRId32 ".\n", smallval, longval);
decimal printf format for int16_t
decimal printf format for int32_t
decimal printf format for int8_t
decimal printf format for int_fast16_t
decimal printf format for int_fast32_t
decimal printf format for int_fast8_t
decimal printf format for int_least16_t
decimal printf format for int_least32_t
decimal printf format for int_least8_t
decimal printf format for intptr_t
integer printf format for int16_t
integer printf format for int32_t
integer printf format for int8_t
integer printf format for int_fast16_t
integer printf format for int_fast32_t
integer printf format for int_fast8_t
integer printf format for int_least16_t
integer printf format for int_least32_t
integer printf format for int_least8_t
integer printf format for intptr_t
octal printf format for uint16_t
octal printf format for uint32_t
octal printf format for uint8_t
octal printf format for uint_fast16_t
octal printf format for uint_fast32_t
octal printf format for uint_fast8_t
octal printf format for uint_least16_t
octal printf format for uint_least32_t
octal printf format for uint_least8_t
octal printf format for uintptr_t
decimal printf format for uint16_t
decimal printf format for uint32_t
decimal printf format for uint8_t
decimal printf format for uint_fast16_t
decimal printf format for uint_fast32_t
decimal printf format for uint_fast8_t
decimal printf format for uint_least16_t
decimal printf format for uint_least32_t
decimal printf format for uint_least8_t
decimal printf format for uintptr_t
hexadecimal printf format for uint16_t
uppercase hexadecimal printf format for uint16_t
hexadecimal printf format for uint32_t
uppercase hexadecimal printf format for uint32_t
hexadecimal printf format for uint8_t
uppercase hexadecimal printf format for uint8_t
hexadecimal printf format for uint_fast16_t
uppercase hexadecimal printf format for uint_fast16_t
hexadecimal printf format for uint_fast32_t
uppercase hexadecimal printf format for uint_fast32_t
hexadecimal printf format for uint_fast8_t
uppercase hexadecimal printf format for uint_fast8_t
hexadecimal printf format for uint_least16_t
uppercase hexadecimal printf format for uint_least16_t
hexadecimal printf format for uint_least32_t
uppercase hexadecimal printf format for uint_least32_t
hexadecimal printf format for uint_least8_t
uppercase hexadecimal printf format for uint_least8_t
hexadecimal printf format for uintptr_t
uppercase hexadecimal printf format for uintptr_t
decimal scanf format for int16_t
decimal scanf format for int32_t
decimal scanf format for int_fast16_t
decimal scanf format for int_fast32_t
decimal scanf format for int_least16_t
decimal scanf format for int_least32_t
decimal scanf format for intptr_t
generic-integer scanf format for int16_t
generic-integer scanf format for int32_t
generic-integer scanf format for int_fast16_t
generic-integer scanf format for int_fast32_t
generic-integer scanf format for int_least16_t
generic-integer scanf format for int_least32_t
generic-integer scanf format for intptr_t
octal scanf format for uint16_t
octal scanf format for uint32_t
octal scanf format for uint_fast16_t
octal scanf format for uint_fast32_t
octal scanf format for uint_least16_t
octal scanf format for uint_least32_t
octal scanf format for uintptr_t
decimal scanf format for uint16_t
decimal scanf format for uint32_t
decimal scanf format for uint_fast16_t
decimal scanf format for uint_fast32_t
decimal scanf format for uint_least16_t
decimal scanf format for uint_least32_t
decimal scanf format for uintptr_t
hexadecimal scanf format for uint16_t
hexadecimal scanf format for uint32_t
hexadecimal scanf format for uint_fast16_t
hexadecimal scanf format for uint_fast32_t
hexadecimal scanf format for uint_least16_t
hexadecimal scanf format for uint_least32_t
hexadecimal scanf format for uintptr_t
signed integer type that can hold a pointer > 64 KB
unsigned integer type that can hold a pointer > 64 KB
Generated automatically by Doxygen for avr-libc from the source code.