That's the correct way to do it, since getchar actually returns an integer. Read the FAQ as to why you have to use an int to test for EOF when using characters.Quote:
Originally Posted by Syked4
:reads his last post: Yep, that's already been covered quite clearly.Quote:
Originally Posted by Syked4
No it shouldn't. There's nothing at all in the standard that says this should ever work. In fact, it should never work. The only reason it "works" ever is because Microsoft decided to ........ up^H^H^H^H^H^H^Hextend the language and make the function do something it should never do. fflush is used for output streams only. :reads his last post: Wait a minute, I already covered that too. :rolleyes:Quote:
Originally Posted by Syked4
:reads last post again: Holy Deja Vu, Batman! I covered this too!Quote:
Originally Posted by Syked4
I wouldn't go that far. Wait a second! I already showed a better way to do this too!Quote:
Originally Posted by Syked4
Apparently you missed my last post too, because I showed a better way to do everything you mentioned.Quote:
Originally Posted by Syked4
Quzah.