title: how to check the path to a symbolic link, but not to what it indicates, but to the link itself. IN C
body: <p>I've seen a lot of similar subject, I've read a lot of readlink, and realpath but problem is I need path to pliksoft, not where this link point.</p>
  <p>for example:</p>
  <blockquote>
  <p>I have symbolic link: pliksoft-&gt;abc</p>
  </blockquote>
  <p>resultat should be:</p>
  <blockquote>
  <p>/users/staff/trl/am/SK/pliksoft</p>
  </blockquote>
  <p>not</p>
  <blockquote>
  <p>/users/staff/trl/am/SK/abc</p>
  </blockquote>
  <p>I do it, in this way:</p>
  <pre><code>char buf[PATH_MAX], buf_2[PATH_MAX]; 
  
  readlink(argv[1], buf, PATH_MAX); 
  realpath(buf, buf_2);
  
  printf(&quot;%s\n&quot;, buf_2);
  </code></pre>
  <p>but thats a bad result.</p>