lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 2 June 2011 18:09, Tony Finch <> wrote:
Marc Balmer <> wrote:
> What does the standard say is*() should return if the argument is EOF?
> Is that specified at all?

It seems to be unspecified. This is probably a bug in the standard.
Here's a link to C99 with all the technical corrigenda included. The
relevant part is section 7.4 starting on page 181.

f.anthony.n.finch �<> �
Rockall, Malin, Hebrides: South 5 to 7, occasionally gale 8 at first in
Rockall and Malin, veering west or northwest 4 or 5, then backing southwest 5
or 6 later. Rough or very rough. Occasional rain. Moderate or good,
occasionally poor.

Although the C99 standard does not state it, the C99 rationale v5.1[1] does
"7.4.1 Character classification functions�
The definitions of printing character and control character have been generalized from ASCII.�
Note that none of these functions returns a nonzero value (true) for the argument value EOF."