R
Rui Maciel
I'm trying to use the getwc() function to get individual characters from a
stream but I've stumbled on a type conversion problem. The getwc() function
returns a type wint_t instead of a wchar_t and there isn't any information
on how to convert a wint_t type to wchar_t and vice-versa.
As the purpose of the wint_t type in that particular case is to serve as a
data type capable of storing all the possible values held by wchar_t along
with the WEOF value, I suspect that a simple cast could do the trick. Is
this true or could that approach break something?
Thanks in advance
Rui Maciel
stream but I've stumbled on a type conversion problem. The getwc() function
returns a type wint_t instead of a wchar_t and there isn't any information
on how to convert a wint_t type to wchar_t and vice-versa.
As the purpose of the wint_t type in that particular case is to serve as a
data type capable of storing all the possible values held by wchar_t along
with the WEOF value, I suspect that a simple cast could do the trick. Is
this true or could that approach break something?
Thanks in advance
Rui Maciel