In a terminal/console with a Unix shell (such as csh, tsh, bash, and so on), do the following:
- Create a simple program—for example, hello.c.
- Add the header file you want to find and save it.
- In a bash command shell, execute the following:
cc -H hello.c
Ouch! Way too much information. What you are seeing is the full #include stack of every single header file that is included in each header file. As you can see, some are included a lot of times.
You can also see that a lot of header files include other header files.