C언어 #include 지시어의 <> 와 ""의 차이점
#include <>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).
- 시스템 헤더파일을 include하는데 사용합니다.
#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for . You can prepend directories to the list of quote directories with the -iquote option.
- 유저의 헤더파일을 include하는데 사용합니다.
경로가 <>는 표준라이브러리가 있는 /usr/include/stdio.h , stlib.h 등 이며,
" " 는 사용자가 사용중인 소스파일에 있는 위치에서 헤더파일을 가져옵니다. 그리고 없을 시 /usr/include/에서도 찾습니다.
따라서 <> 는 " "에 포함된다고 볼 수 있습니다.