title: How to capture output of printf?
body: <p>I am calling a function <code>funcB</code> from <code>funcA</code>.
  <code>funcB</code> uses several <code>printf</code> statements to output data.
  Is there a way for me to capture that data via <code>funcA</code>?
  I can not modify <code>funcB</code>.</p>
  
  <pre><code>funcB(){
       printf( "%s", "My Name is" );
       printf( "%s", "I like ice cream" );
  }
  
  funcA(){
      funcB();
  }
  </code></pre>