This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
filebuf.in_avail
- To: <libstdc++ at sourceware dot cygnus dot com>
- Subject: filebuf.in_avail
- From: "Anthony Williams" <anthony_w dot geo at yahoo dot com>
- Date: Wed, 7 Jun 2000 14:04:20 +0100
- Reply-To: "Anthony Williams" <anthony at anthonyw dot cjb dot net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
For an empty file, filebuf.in_avail() returns -1, which is checked
for in the test suite.
However, I wonder whether this is in fact compliant. Surely it makes
no sense to be able to retrieve -1 characters without error? Isn't
zero a far more sensible value?
It certainly wouldn't be in violation of the standard for an
implementation to return zero, so this ought to be permitted in the
testsuite.
Anthony
PGP Fingerprint:
0E2D D32A 8732 DC31 804C D435 9BF0 F8FE 1C1B 9AD5
PGP Key at: http://i3.yimg.com/3/c7e5ee24/g/68fc2307.asc
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 for non-commercial use <http://www.pgp.com>
Comment: PGP Key at: http://i3.yimg.com/3/c7e5ee24/g/68fc2307.asc
iQA/AwUBOT5IU5vw+P4cG5rVEQK1AwCg1Ebgb3ZvmI9M5ICggrDyDsor8/kAn1dU
8TX9L8erc5OkGrrzUGKoKnqD
=dXbi
-----END PGP SIGNATURE-----
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com