signed vs unsigned pointer warning

Richard Earnshaw Richard.Earnshaw@arm.com
Mon Oct 11 16:34:00 GMT 2004


On Fri, 2004-10-08 at 22:14, Paul Jarc wrote:
> Jamie Lokier <jamie@shareable.org> wrote:
> > Or is there a rule that is*(EOF) must return 0?
> 
> Yes.  The standard specifies the result of each is* macro to be 1 iff
> the argument is a certain kind of character.  EOF is not any kind of
> character.

Pedant time...  The value is 'nonzero (true)' according to section 7.4.1
of c99.  It doesn't have to be 1.  

R.



More information about the Gcc mailing list