title: interact (stdin/out) with command line programs at runtime in C
body: <p>I think the thing I want to do is called GUI/command line wrapping sftp(1). I need an easy way to start that program and react on its output while running. Additionally I have to be able to send input to it, full interaction is required.</p>
  
  <p>I tried forkpty (emulated TTY), but there wasn't one good example findable using forkpty for that job, instead several warnings about overflows in in arguments and advisories not to use it. Another weird thing about this was the windowsize argument...</p>
  
  <p>Please either give me one or many example(s) on how to call &amp; interact with command line programs in C or another way of integrating sftp in an iPhone GUI</p>