How can I find the header files of the C programming language in Linux?

前端 未结 10 1811
南笙
南笙 2020-12-07 08:42

When I write C programs in Linux, and then compile them using gcc, I am always curious about where those header files are. For example, where stdio.h is. More g

10条回答
  •  甜味超标
    2020-12-07 09:23

    One approach, if you know the name of the include file, would be to use find:

    cd /
    find . -name "stdio.h"
    find . -name "std*.h"
    

    That'll take a while as it goes through every directory.

提交回复
热议问题