Name | Description | Notes | Source | Availability | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
INT_ |
Maximum value of
int_ |
L | M | <stdint.h> |
C99 | C11 | |||||
INT_ |
Minimum value of
int_ |
L | M | <stdint.h> |
C99 | C11 | |||||
int_ |
Fastest signed integer type with at least 8 bits | L | T | <stdint.h> |
C99 | C11 | |||||
PRIdFAST8 |
Decimal output conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIiFAST8 |
Decimal output conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIoFAST8 |
Octal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIuFAST8 |
Decimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIXFAST8 |
Hexdecimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIxFAST8 |
Hexdecimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNdFAST8 |
Decimal input conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNiFAST8 |
General input conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNoFAST8 |
Octal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNuFAST8 |
Decimal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNxFAST8 |
Hexdecimal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
UINT_ |
Maximum value of
uint_ |
L | M | <stdint.h> |
C99 | C11 | |||||
uint_ |
Fastest unsigned integer type with at least 8 bits | L | T | <stdint.h> |
C99 | C11 |
uint_
and
int_
are the fastest integer types of at least 8
bits.
uint_
is unsigned, and has the
range zero to
UINT_
, which is at least [0,
+255].
int_
is signed, and has the range
INT_
to
INT_
, which is at least
[−127, +127].
The following macros can be used in the fmt
argument of printf
to print arguments of types
uint_
and
int_
:
PRIuFAST8
PRIoFAST8
PRIxFAST8
PRIXFAST8
PRIdFAST8
PRIiFAST8
The following macros can be used in the fmt
argument of scanf
to scan arguments of types
uint_
and
int_
:
SCNuFAST8
SCNoFAST8
SCNxFAST8
SCNdFAST8
SCNiFAST8
atomic_
is an alias for
_Atomic
uint_
.
atomic_
is an alias for
_Atomic
int_
.
Related types:
uint8_t
int8_t
uint_
least8_t int_
least8_t uint_
fast8_t int_
fast8_t
Property |
uint_ |
int_ |
|
---|---|---|---|
Minimum width (bits) | 8 | ||
Lowest value | 0 | ≤−127 | |
Highest value | ≥+255 | ≥+127 | |
printf |
base 10 | "%"
PRIuFAST8 |
"%"
PRIdFAST8 or "%"
PRIiFAST8 |
base 8 | "%"
PRIoFAST8 |
||
upper-case base 16 | "%"
PRIXFAST8 |
||
lower-case base 16 | "%"
PRIxFAST8 |
||
scanf |
base 10 | "%"
SCNuFAST8 |
"%"
SCNdFAST8 |
base 8 | "%"
SCNoFAST8 |
||
base 16 | "%"
SCNxFAST8 |
||
base 16, 8 or 10 by prefix | "%"
SCNiFAST8 |