title: increasing standard output buffer size
body: <p>I'm running a program which starts a process and then that process writes to stdout which my program uses. Problem is, the output I need is about 42000 bytes. It seems the stdout buffer size is 8192 and I don't want it to flush until it gets to the 42000. Is there a way to set this? </p>
  
  <p>I tried this:</p>
  
  <pre><code>setvbuf ( stdout , NULL , _IOFBF , 50000 ); // ie set it to 50000 bytes
  </code></pre>
  
  <p>on the code for the subprocess, but it doesn't seem to work at all. Does anyone have any ideas?</p>