#include search paths

Doug Gwyn gwyn at smoke.BRL.MIL
Mon Nov 14 17:09:48 AEST 1988


In article <2899 at ingr.UUCP> crossgl at ingr.UUCP (Gordon Cross) writes:
>There seems to be some confusion between various documents I checked
>regarding this.

The details vary with the implementation; the intent does not.

Use #include "file.h" when including a header source file that is
part of the application source code.

Use #include <file.h> when including a header (n.b. not necessarily
a file) provided by the C implementation, for example standard
headers or headers for vendor-provided extensions.

Do anything else and you're asking for portability problems.



More information about the Comp.lang.c mailing list