I am using a dev system where I have to specify the lib name when accessing a function inside it.
I\'ve used functions like open() before, and somehow found out that
lstat is in libc, and libc is linked in by default. You don't need to do anything to use lstat besides including the header file for it #include
lstat
#include
man pages usually state which library they are in.