Joona said:
Generally, <> is for headers required by the standard
or otherwise provided along with the implementation
and "" is for headers you wrote yourself or got from a third party.
No.
*Traditionally* (meaning the UNIX tradition), angle brackets < >
are for headers considered part of the [operating] system
(including the C compiler and third party headers installed
[by the systems administrator] for use by multiple users):
/usr/include/linux/console.h
/usr/include/math.h
/usr/include/X11/X.h
for example
and double quotes "" "" are for headers that are part
of a programmers application program:
> cat main.c
#include "main.h"
int main(int argc, char* argv[]) {
// . . .
return 0;
}
If you are implementing a library which may be installed
in a system directory such as:
/usr/include/
by the system administrator for the target platform,
you should expect programmers who use your library to write:
#include <library.h>