Is swprintf the only portable way to convert wint_t to wchar_t?
-
-
Huh is not an answer. How would you convert wint_t to wchar_t?
-
By assignment.
-
Who says that's allowed? It's potentially type-narrowing implementation-defined behaviour. GCC is OK. https://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html#Integers-implementation …
-
Are you not assuming the wint_t contains a value representable in wchar_t? Where did it come from?
- End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.