Names specified here
Name Description Notes Source Availability
atomic_int_least8_t Atomic integer type ? T <stdatomic.h> C11
atomic_uint_least8_t Atomic integer type ? T <stdatomic.h> C11
INT8_C() Create constant of type int_least8_t L M (·) <stdint.h> C99 C11
INT_LEAST8_MAX Maximum value of int_least8_t L M <stdint.h> C99 C11
INT_LEAST8_MIN Minimum value of int_least8_t L M <stdint.h> C99 C11
int_least8_t Smallest signed integer type with at least 8 bits L T <stdint.h> C99 C11
PRIdLEAST8 Decimal output conversion specifier for int_least8_t M <inttypes.h> C99 C11
PRIiLEAST8 Decimal output conversion specifier for int_least8_t M <inttypes.h> C99 C11
PRIoLEAST8 Octal output conversion specifier for uint_least8_t M <inttypes.h> C99 C11
PRIuLEAST8 Decimal output conversion specifier for uint_least8_t M <inttypes.h> C99 C11
PRIXLEAST8 Hexdecimal output conversion specifier for uint_least8_t M <inttypes.h> C99 C11
PRIxLEAST8 Hexdecimal output conversion specifier for uint_least8_t M <inttypes.h> C99 C11
SCNdLEAST8 Decimal input conversion specifier for int_least8_t M <inttypes.h> C99 C11
SCNiLEAST8 General input conversion specifier for int_least8_t M <inttypes.h> C99 C11
SCNoLEAST8 Octal input conversion specifier for uint_least8_t M <inttypes.h> C99 C11
SCNuLEAST8 Decimal input conversion specifier for uint_least8_t M <inttypes.h> C99 C11
SCNxLEAST8 Hexdecimal input conversion specifier for uint_least8_t M <inttypes.h> C99 C11
UINT8_C() Create constant of type uint_least8_t L M (·) <stdint.h> C99 C11
UINT_LEAST8_MAX Maximum value of uint_least8_t L M <stdint.h> C99 C11
uint_least8_t Smallest unsigned integer type with at least 8 bits L T <stdint.h> C99 C11

uint_least8_t and int_least8_t are the smallest integer types of at least 8 bits. uint_least8_t is unsigned, and has the range zero to UINT_LEAST8_MAX, which is at least [0, +255]. int_least8_t is signed, and has the range INT_LEAST8_MIN to INT_LEAST8_MAX, which is at least [−127, +127].

The following macros can be used in the fmt argument of printf to print arguments of types uint_least8_t and int_least8_t:

The following macros can be used in the fmt argument of scanf to scan arguments of types uint_least8_t * and int_least8_t *:

atomic_uint_least8_t is an alias for _Atomic uint_least8_t. atomic_int_least8_t is an alias for _Atomic int_least8_t.

Related types:

Property uint_least8_t int_least8_t
Minimum width (bits) 8
Lowest value 0 ≤−127
Highest value ≥+255 ≥+127
Constant UINT8_C(untyped-integer-constant) INT8_C(untyped-integer-constant)
printf base 10 "%" PRIuLEAST8 "%" PRIdLEAST8 or "%" PRIiLEAST8
base 8 "%" PRIoLEAST8
upper-case base 16 "%" PRIXLEAST8
lower-case base 16 "%" PRIxLEAST8
scanf base 10 "%" SCNuLEAST8 "%" SCNdLEAST8
base 8 "%" SCNoLEAST8
base 16 "%" SCNxLEAST8
base 16, 8 or 10 by prefix "%" SCNiLEAST8

CHaR
Sitemap Supported
Site format updated 2024-06-05T22:37:07.391+0000
Data updated 1970-01-01T00:00:00.000+0000
Page updated 2022-06-17T21:43:05.000+0000