Why does the nginx source dock file contain < >, instead of " "
巴扎黑
巴扎黑 2017-05-16 17:18:11
0
1
344

When looking at the nginx source code, I see that header files are included using #include <ngx_core.h> #include <nginx.h> A similar format, an error will be reported in the IDE that the file cannot be found
These files are not in the system directory, why use "<>"

巴扎黑
巴扎黑

reply all(1)
巴扎黑

The following excerpt is from the original text of ISO/IEC 9899:1999:

# include <h-char-sequence> new-line
searches a sequence of implementation-defined places for a header identified uniquely by the specified sequence between the < and > delimiters, and causes the replacement of that directive by the entire contents of the header.

How the places are specified or the header identified is implementation-defined.

Did you notice the last one, implementation-defined - no one stipulates that it is the system directory, and the default behavior of many compilers is not to only search the system directory. Even if it is the same compiler, the specific behavior may depend on the options you provide, not to mention the variety of C language compilers.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!