title: How to check if soft link exists or not
body: <pre><code>user: ls -lt
  lrwxrwxrwx 1 user sw-team    9 Jun 18 19:01 new_link -&gt; test/file
  </code></pre>
  
  <p>I have a soft link like mentioned above. I want to check whether new_link(not the linked file) exists or not. I tried all the below but all are checking only if the final destination file (test/file) exists or not. </p>
  
  <pre><code>access(filename,F_OK)
  stat()
  open()
  fopen()
  </code></pre>
  
  <p>I want to find it in C language not in shell script.Please tell me how to find if new_link exists before checking the linked file?</p>