S
srbstar
Can a program detect if it's stdin is
coming from keyboard input vs. being
redirected from a file?
If it's from a file, I want to fputs()
the text. But if it's from the keyboard,
I won't (don't want it typed, then
fputs()'d.
SRB
coming from keyboard input vs. being
redirected from a file?
If it's from a file, I want to fputs()
the text. But if it's from the keyboard,
I won't (don't want it typed, then
fputs()'d.
SRB