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.
for example:
I have symbolic link: pliksoft->abc
resultat should be:
/users/staff/trl/am/SK/pliksoft
not
/users/staff/trl/am/SK/abc
I do it, in this way:
char buf[PATH_MAX], buf_2[PATH_MAX];
readlink(argv[1], buf, PATH_MAX);
realpath(buf, buf_2);
printf("%s\n", buf_2);
but thats a bad result.
I suppose you're trying to do: