title: How to put the contents of getenv() into a string
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5866134/how-to-read-linux-environment-variables-in-c">How to read Linux environment variables in c++</a>  </p>
  </blockquote>
  
  
  
  <p>How can the following be changed to do what it's supposed to do?</p>
  
  <pre><code>string s = getenv("PATH");
  </code></pre>