M
Michael Brennan
If a call to getchar() returns EOF, is the behavior
defined if another getchar() call is made? Will it
return EOF again?
The reason I'm asking: if I have a function that uses
getchar() repeatedly, and it returns EOF after some bytes,
do I need the function to handle the EOF right there,
or, can I just wait until the next time my function executes,
and handle it there, if EOF will be returned by the first call
to getchar().
Thanks!
/Michael
defined if another getchar() call is made? Will it
return EOF again?
The reason I'm asking: if I have a function that uses
getchar() repeatedly, and it returns EOF after some bytes,
do I need the function to handle the EOF right there,
or, can I just wait until the next time my function executes,
and handle it there, if EOF will be returned by the first call
to getchar().
Thanks!
/Michael