Where to find stdio.h functions implementations?

前端 未结 5 2120
-上瘾入骨i
-上瘾入骨i 2020-11-28 05:36

I study C and I noticed that I can\'t find the implementation file for some header files like, for example, stdio.h which is a library which contains a lot of i

5条回答
  •  有刺的猬
    2020-11-28 05:46

    On Ubuntu or other OS that uses aptitude for package management, you can use:

    apt-get source libc6
    

    for example.

    Also, running gcc in verbose mode will tell you the details of the paths it is using. This should help you find which include and library paths it's using.

    gcc -v
    

    or

    gcc -Wl,--verbose
    

提交回复
热议问题