27 Apr
2003
27 Apr
'03
17:43
On Sun, 27 Apr 2003, Anders Johansson wrote:
On Sunday 27 April 2003 18:33, Raúl Gutiérrez Segalés wrote:
Hi,
I am wondering how do I state in a C program that my input is comming from a pipe ?
For example:
ls | ./myprog
You get that on standard input, file descriptor 0
so read(stdin, buf, 100) shall do it ?