title: what is the difference between chdir(...) and system("cd ...")?
body: <p>Was curious what the difference is in these two lines of code.</p>
  
  <pre><code>chdir ("..");
  </code></pre>
  
  <p>And</p>
  
  <pre><code>system ("cd ..");
  </code></pre>
  
  <p>Is there any difference other than call the system library function, which then calls chdir? At least, that's what I assume happens based on what I have found on the internet. Thanks.</p>