title: Change relative path to absolute path in C++ using realpath in Linux
body: <p>I need to change a relative path to absolute path in linux in C++. I am using realpath, but the output is wrong!</p>
  
  <pre><code>char resolved_path[200];
  realpath("$HOME/Desktop/SumoSVN/bin", resolved_path);
  cout &lt;&lt; resolved_path &lt;&lt; endl;
  </code></pre>
  
  <p>I am expecting to get this output : /home/mani/Desktop/SumoSVN/bin</p>
  
  <p>but I am getting this!: /home/mani/Desktop/VENTOS/$HOME</p>
  
  <p>what am I doing wrong?</p>