Is swprintf the only portable way to convert wint_t to wchar_t?
Are you not assuming the wint_t contains a value representable in wchar_t? Where did it come from?
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
You can of course test if it's in the range using WCHAR_MAX/MIN, and/or do your own modular reduction into that range.
-
That's probably the right way to do it. My point is that wint_t has WEOF which may not be representable in wchar_t.
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.