help needed with redirecting stdin

Nauman Akbar b99094@cs.lums.edu.pk
Sat Sep 29 05:27:00 GMT 2001


Hello

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.

Regards
Nauman



More information about the Gcc-help mailing list