title: Setting environment variable in C
body: <p>I am trying to change my $PATH in a C program. After this code, when I print my PATH variable, it remains the same. Here is my approach,</p>
  
  <pre><code>    char path[100]="PATH=";
      char *input = "/newfolder/hello/";
      putenv(strcat(path, input));
  </code></pre>
  
  <p>I am trying to print it back out using echo $PATH and it still shows the former path, as in it is not changed.</p>