title: Redirecting printf?
body: <p>How do you redirect the output of printf to, for example, a stream or something? I have a gui app that links with a console library. The library makes repeated calls to printf. I need a way to intercept those and have them processed by a function. Also, creating a console is not an option. Im using Windows, btw.</p>
  
  <p>Edit - Also I was hoping not to redirect to a file.</p>