On Oct 10, 7:39 pm, TK <tok...@web.dewrote:
Hi,
I have to know whether a typical file (under Linux) a symbolic link is
(in the sense of the stat()-Funktion). How can I check it excactly?
Thanks for help.
o-o
THomas
This is off topic here. You'd better post this to comp.unix.programmer.
But your question is easy to answer. You can check the attribute of the
file directly. And do remember: "the C function lstat gives you the
status of a file regardless of whether it's a normal file or a symbolic
link, the stat function follows symbolic links and, if the specified
file was a symbolic link, returns the status of the linked-to file."