title: Printing all environment variables in C / C++
body: <p>How do I get the list of all environment variables in C and/or C++?</p>
  
  <p>I know that <code>getenv</code> can be used to read an environment variable, but how do I list them all?</p>