unix question about stdin
Robert B Carroll
conan at vax1.acs.udel.EDU
Sat Apr 22 10:49:10 AEST 1989
Once stdin is closed, how do you open it up again so that
all the stdio functions(scanf, gets etc. etc. etc.) will work
via a terminal keyboard? to explain it in more detail, my C
program:
1) reads user info typed in from keyboard
2) does a freopen and acts like a file is now standard input
3) then i need to 'make' standard input be the keyboard so that
i can get info typed in from the keyboard again.
I'm an 'end-user', so i can't do any super user calls.
any help would be most appreciated. i haven't solved step 3 yet.
please send responses via email:
--
conan at vax1.acs.udel.edu
CONAN THE BARBARIAN
More information about the Comp.unix.wizards
mailing list