suppose I have a Unicode codepoint c (a uint32
). Is there a way to print this integer to console (as a wide character) without using locale.h
or wchar.h
? Thanks.
Asked
Active
Viewed 147 times
2

Dervin Thunk
- 19,515
- 28
- 127
- 217
-
What prevents you from using `wchar.h` ? – ninjalj May 23 '11 at 19:55
2 Answers
0
You can try to use
printf("%lc", c);
though you really need to make sure that c
is a wint_t
(which requires wchar.h
) rather than a uint32_t
, even though the two are most likely the same type...

Chris Dodd
- 119,907
- 13
- 134
- 226