- 论坛徽章:
- 0
|
How to get the name of the file pointed to by symbolic link
you might misunderstood my means, what you do is just
to check whether the file is a symbolic link, but what I
want to know is how to get the file name(including the whole path)
of the file that pointed to by the symbolic link, for example:
the symbolic link is '/home/cs/temp/test_slink', and it is
pointed to '/home/cs/share/test', then, in c func, how do we
know that '/home/cs/temp/test_slink' is pointed to '/home/cs/share/test'?
thanks! |
|