Names specified here
Name Description Notes Source Availability
atomic_int_least16_t Atomic integer type ? T <stdatomic.h> C11
atomic_uint_least16_t Atomic integer type ? T <stdatomic.h> C11
INT16_C() Create constant of type int_least16_t L M (·) <stdint.h> C99 C11
INT_LEAST16_MAX Maximum value of int_least16_t L M <stdint.h> C99 C11
INT_LEAST16_MIN Minimum value of int_least16_t L M <stdint.h> C99 C11
int_least16_t Smallest signed integer type with at least 16 bits L T <stdint.h> C99 C11
PRIdLEAST16 Decimal output conversion specifier for int_least16_t M <inttypes.h> C99 C11
PRIiLEAST16 Decimal output conversion specifier for int_least16_t M <inttypes.h> C99 C11
PRIoLEAST16 Octal output conversion specifier for uint_least16_t M <inttypes.h> C99 C11
PRIuLEAST16 Decimal output conversion specifier for uint_least16_t M <inttypes.h> C99 C11
PRIXLEAST16 Hexdecimal output conversion specifier for uint_least16_t M <inttypes.h> C99 C11
PRIxLEAST16 Hexdecimal output conversion specifier for uint_least16_t M <inttypes.h> C99 C11
SCNdLEAST16 Decimal input conversion specifier for int_least16_t M <inttypes.h> C99 C11
SCNiLEAST16 General input conversion specifier for int_least16_t M <inttypes.h> C99 C11
SCNoLEAST16 Octal input conversion specifier for uint_least16_t M <inttypes.h> C99 C11
SCNuLEAST16 Decimal input conversion specifier for uint_least16_t M <inttypes.h> C99 C11
SCNxLEAST16 Hexdecimal input conversion specifier for uint_least16_t M <inttypes.h> C99 C11
UINT16_C() Create constant of type uint_least16_t L M (·) <stdint.h> C99 C11
UINT_LEAST16_MAX Maximum value of uint_least16_t L M <stdint.h> C99 C11
uint_least16_t Smallest unsigned integer type with at least 16 bits L T <stdint.h> C99 C11

uint_least16_t and int_least16_t are the smallest integer types of at least 16 bits. uint_least16_t is unsigned, and has the range zero to UINT_LEAST16_MAX, which is at least [0, +65535]. int_least16_t is signed, and has the range INT_LEAST16_MIN to INT_LEAST16_MAX, which is at least [−32767, +32767].

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

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

atomic_uint_least16_t is an alias for _Atomic uint_least16_t. atomic_int_least16_t is an alias for _Atomic int_least16_t.

Related types:

Property uint_least16_t int_least16_t
Minimum width (bits) 16
Lowest value 0 ≤−32767
Highest value ≥+65535 ≥+32767
Constant UINT16_C(untyped-integer-constant) INT16_C(untyped-integer-constant)
printf base 10 "%" PRIuLEAST16 "%" PRIdLEAST16 or "%" PRIiLEAST16
base 8 "%" PRIoLEAST16
upper-case base 16 "%" PRIXLEAST16
lower-case base 16 "%" PRIxLEAST16
scanf base 10 "%" SCNuLEAST16 "%" SCNdLEAST16
base 8 "%" SCNoLEAST16
base 16 "%" SCNxLEAST16
base 16, 8 or 10 by prefix "%" SCNiLEAST16

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