filebuf.in_avail
Anthony Williams
anthony_w.geo@yahoo.com
Wed Jun 7 06:06:00 GMT 2000
-----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
More information about the Libstdc++
mailing list