Names specified here
Name Description Notes Source Availability
__STDC_UTF_32__ Indicator of equivalence of char32_t and UTF-32 L ? M Predefined C11
ATOMIC_CHAR32_T_LOCK_FREE Lock-free property of type atomic_char32_t ? M <stdatomic.h> C11
atomic_char32_t Atomic character type ? T <stdatomic.h> C11
char32_t Potential 32-bit Unicode-character type ? T <uchar.h> C11

char32_t is an unsigned integer type of at least 32 bits, the same type that uint_least32_t is an alias of, so it has the range 0 to UINT_LEAST32_MAX, which is at least 4294967295. It is intended to hold characters encoded in UTF-32. However, this is only guaranteed if __STDC_UTF_32__ is predefined (which expands to 1 if it is).

The functions mbrtoc32 and c32rtomb can be used to convert between sequences of char32_t and char. Character constants of type char32_t take the form U'x'. String literals of type char32_t[] take the form U"abc".

atomic_char32_t is an alias for _Atomic char32_t. This type is lock-free always if ATOMIC_CHAR32_T_LOCK_FREE is 2, sometimes if 1, and never if 0.


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