Name | Description | Notes | Source | Availability | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
INT32_C() |
Create constant of type
int_ |
L | M | (·) | <stdint.h> |
C99 | C11 | ||||
INT_ |
Maximum value of
int_ |
L | M | <stdint.h> |
C99 | C11 | |||||
INT_ |
Minimum value of
int_ |
L | M | <stdint.h> |
C99 | C11 | |||||
int_ |
Smallest signed integer type with at least 32 bits | L | T | <stdint.h> |
C99 | C11 | |||||
PRIdLEAST32 |
Decimal output conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIiLEAST32 |
Decimal output conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIoLEAST32 |
Octal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIuLEAST32 |
Decimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIXLEAST32 |
Hexdecimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIxLEAST32 |
Hexdecimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNdLEAST32 |
Decimal input conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNiLEAST32 |
General input conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNoLEAST32 |
Octal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNuLEAST32 |
Decimal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNxLEAST32 |
Hexdecimal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
UINT32_C() |
Create constant of type
uint_ |
L | M | (·) | <stdint.h> |
C99 | C11 | ||||
UINT_ |
Maximum value of
uint_ |
L | M | <stdint.h> |
C99 | C11 | |||||
uint_ |
Smallest unsigned integer type with at least 32 bits | L | T | <stdint.h> |
C99 | C11 |
uint_
and
int_
are the smallest integer types of at least 32
bits.
uint_
is unsigned, and has the
range zero to
UINT_
, which is at least
[0, +4294967295].
int_
is signed, and has the range
INT_
to
INT_
, which is at least
[−2147483647, +2147483647].
The following macros can be used in the fmt
argument of printf
to print arguments of types
uint_
and
int_
:
PRIuLEAST32
PRIoLEAST32
PRIxLEAST32
PRIXLEAST32
PRIdLEAST32
PRIiLEAST32
The following macros can be used in the fmt
argument of scanf
to scan arguments of types
uint_
and
int_
:
SCNuLEAST32
SCNoLEAST32
SCNxLEAST32
SCNdLEAST32
SCNiLEAST32
atomic_
is an alias for
_Atomic
uint_
.
atomic_
is an alias for
_Atomic
int_
.
Related types:
uint32_t
int32_t
uint_
least32_t int_
least32_t uint_
fast32_t int_
fast32_t
Property |
uint_ |
int_ |
|
---|---|---|---|
Minimum width (bits) | 32 | ||
Lowest value | 0 | ≤−2147483647 | |
Highest value | ≥+4294967295 | ≥+2147483647 | |
Constant |
UINT32_C(untyped-integer-constant) |
INT32_C(untyped-integer-constant) |
|
printf |
base 10 | "%"
PRIuLEAST32 |
"%"
PRIdLEAST32 or "%"
PRIiLEAST32 |
base 8 | "%"
PRIoLEAST32 |
||
upper-case base 16 | "%"
PRIXLEAST32 |
||
lower-case base 16 | "%"
PRIxLEAST32 |
||
scanf |
base 10 | "%"
SCNuLEAST32 |
"%"
SCNdLEAST32 |
base 8 | "%"
SCNoLEAST32 |
||
base 16 | "%"
SCNxLEAST32 |
||
base 16, 8 or 10 by prefix | "%"
SCNiLEAST32 |