Note: # cat /tmp/foo - regular fil开发者_高级运维e /lib/a.lib /lib/b.lib /lib/c.lib /lib/d.lib cat /tmp/foo | xargs cp /tmp/fred
I need my program written in pure C to stop execution when stdin is closed. There is indefinite work done in program main cycle, and there is no way I can use blocking checks (like getc()) there (no
What I would like is to have the开发者_运维百科 process start but have the input and output all be in the same console.