How I can view a header file and where I can find it

Asked

Viewed 39 times

-2

Dear colleagues, How do I find the file location of a header file (ex. stdio.h)? I would like to know where I can find it locally on my machine to open and consult its contents. For information, if I can assist the answer, I use Linux.

1 answer

0

The environment variable $INCLUDE is like the variable $PATH, and contains a list of directories separated by ':' where the compiler will search the include files. But this specific file stdio. h being a standard file, it is usually in the directory /usr/include

Browser other questions tagged

You are not signed in. Login or sign up in order to post.