title: How can I capture another process's output using C?
body: <p>How can I capture another process's output using pure C? Can you provide sample code?</p>
  
  <p>EDIT: let's assume Linux. I would be interested in "pretty portable" code. All I want to do is to execute a command, capture it's output and process it in some way.</p>