Specifically, I need to write a C program where I put inside the pathname of a symbolic link and on output I print only the name of that symbolic link(not the name of the file pointed by the link). What functions and structures I must look at to find this information?
closed as unclear what you're asking by Gilles, mdpc, Michael Homer, don_crissti, cuonglm Jul 11 '15 at 2:56
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
You can also look into readlinkat(..), it handles more error scenario's than readlink(..)
It is operating system specific.