Redirect stdin in C program to another process

Posted by Ross Andrews on Stack Overflow See other posts from Stack Overflow or by Ross Andrews
Published on 2010-04-21T03:47:40Z Indexed on 2010/04/21 3:53 UTC
Read the original article Hit count: 233

Filed under:
|
|

I have a C program, and I'd like to have it filter all its input with tr. So, I'd like to start up tr as a child process, redirect my stdin to it, then capture tr's stdout and read from that.

© Stack Overflow or respective owner

Related posts about c

    Related posts about unix