[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: getF in lauxlib.c--why call feof?
- From: Daniel Stephens <daniel@...>
- Date: Tue, 25 Mar 2008 19:20:27 -0700
Daniel Stephens wrote:
but either way, if that's failing it's much more likely the fault of
the call to ungetc earlier that doesn't bother to check if c == EOF.
I'll retract that part of what I said, as I checked the documentation
and ungetc has a very specific (and useful) outcome in that case.
(lua - still passes the Ctrl-D test with the feof test in getF removed tho)
Daniel.