help needed with redirecting stdin

Nauman Akbar
Sat Sep 29 05:27:00 GMT 2001


I am running gcc on Linux and Solaris. At command prompt I am redirecting
an input file to my binary, which is attached to stdin. I am using
gets() to read from stdin. After I am finished reading the file, I want
gets() to continue reading from console input. But I cant figure out
how? Can anyone help in this regard.


More information about the Gcc-help mailing list