Identifying which Linux system library contains a function

前端 未结 6 717
误落风尘
误落风尘 2020-12-20 14:30

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

6条回答
  •  天命终不由人
    2020-12-20 14:52

    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

    man pages usually state which library they are in.

提交回复
热议问题