From: Daryle Walker (darylew_at_[hidden])
Date: 2001-03-11 20:08:44
on 3/7/01 4:15 PM, Daryle Walker at darylew_at_[hidden] wrote:
> I just uploaded version 7 of "more_io.zip" to the vault. Unfortunately, there
> is a problem with the new C-based stream classes: I can't get input to work.
> The example "c_io_test.cpp" doesn't receive anything when it trys reading. Am
> I missing some subtle point of C I/O?
I got it to work now. I thought that there was no "wchar_t" version of the
"std::ungetc" function, so I made a strange workaround in my "underflow"
method using "std::fseek" with to backup the stream to counter "std::fgetc".
I discovered that there was a "std::ungetwc", and corrected the policy
classes and removed the workaround. (My compiler's help file about the C
library isn't as comprehensive as it thinks it is.)
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk