stdin

Brian K. W. Hook jdb at reef.cis.ufl.edu
Fri Dec 28 16:08:06 AEST 1990


I want to put a key back into the keyboard buffer used by getchar and/or 
getc.  Now, I was wondering (other than using ungetc()), is it possible
to do the following:

freopen(stdin,"a");

?

As far as I can tell, stdin is a stream written for read access only or
something...can I reopen it and append to it?  Just wondering.

Brian



More information about the Comp.lang.c mailing list