title: system() output to a char*
body: <pre><code>int system(const char *)
  </code></pre>
  
  <p>How can I send output of this command (lets say the command is "pwd") to a char*? Its returning an int but I want the results of the command to be sent to a char*.</p>