This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: [bug] istream::getline(char*,streamsize) still broken
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: [bug] istream::getline(char*,streamsize) still broken
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Thu, 20 Jul 2000 18:48:40 -0700
Sorry about the delay.....
Ummmmm. Have you tried this recently?
[snip]
const std::streamsize it = 5;
assert( eifs.getline(tmp,it) ); // use eifs.getline(...); eifs.fail()
assert( eifs.gcount() == it ); // no, it - 1 max possible to extract
characters are no longer extracted and stored after n - 1, so gcount()
over it - 1 (4) would be incorrect.
-benjamin