On a Linux distribution (e.g. Debian) how does one find the static library or shared object that defines a given function (e.g. printf)? Is some variation of (first using ldd from a given executable that uses that function and then using something like nm -D --defined-only /lib/x86_64-linux-gnu/libc.so.6 | grep printf | more) the right way to do it?
Asked
Active
Viewed 87 times
0
-
2Hack: `man 3
`, assuming that the library is well-documented. – Jun 23 '13 at 18:10 -
And if nothing it mentioned it's in the Standard Library ("libc"). – alk Jun 23 '13 at 18:31