title: How to print to stdout during unit test for c language
body: <p>I'm writing C unit test with this unit testing framework: <a href="http://check.sourceforge.net/doc/check_html/" rel="nofollow">check</a></p>
  
  <p>It feels good, but now I would want to insert some test prints to stdout which would show in the results when I run the tests in netbeans.</p>
  
  <p>Currently I only see messages that are inserted with the convenience test functions: <a href="http://check.sourceforge.net/doc/check_html/check_4.html#Convenience-Test-Functions" rel="nofollow">convenience test functions</a>.</p>
  
  <p>How could I see in the outputs the printfs or some myself generated prints?</p>
  
  <p>Example test code:</p>
  
  <pre><code>START_TEST(test_something)
  {
      printf("a printf I would like to see in the output");
      fail("some fail message");
  }
  END_TEST
  </code></pre>
  
  <p>Now how could I see the printf in the code in the test output (or at least somewhere).</p>