Re: I have a problem in my study



Herbert Rosenau said:

<snip>

Hey, the OP had declared c as int - and getc() does not return char
but int.

Yes, but I think you'll find he was talking about how to indicate
end-of-file from a keyboard.

Read your book what getc returns - an char wided to int or
EOF.

s/char/unsigned char/

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.



Relevant Pages