Re: I have a problem in my study
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Tue, 31 Oct 2006 12:16:55 +0000
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)
.
- References:
- I have a problem in my study
- From: qazwsx746
- Re: I have a problem in my study
- From: Mark McIntyre
- Re: I have a problem in my study
- From: Herbert Rosenau
- I have a problem in my study
- Prev by Date: Re: need for an extra variable.
- Next by Date: Re: string search?
- Previous by thread: Re: I have a problem in my study
- Next by thread: Run a program behind screen
- Index(es):
Relevant Pages
|
|