-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Alan Hourihane on 2/28/2009 4:31 PM: >> I'll change things around now. > > The above is a little unfair as FreeMiNT has problems seeking beyond the > end of stdin, so I had to modify the test to remove that final check.
Unfair or not, POSIX requires it: http://www.opengroup.org/onlinepubs/9699919799/functions/fseek.html "The fseek() function shall allow the file-position indicator to be set beyond the end of existing data in the file. If data is later written at this point, subsequent reads of data in the gap shall return bytes with the value 0 until data is actually written into the gap." - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmpy20ACgkQ84KuGfSFAYCrOwCgwwCueLshOHxEi0VS+7PuzHYZ Id4AoNYBR2wjcSVlNdmWGUjtON2pqbGT =8HSY -----END PGP SIGNATURE-----