Mail Archives: djgpp/1997/07/11/22:31:13
Art S. Kagel wrote:
[Confused attributions deleted; you replied to my message, but didn't
quote any of it]
> From K&R 2nd Ed., Section 4.11:
>
> "File inclusion ... If the filename is quoted, searching for the file
> typically begins where the source program was found; if it is not found
> there, or if the name is enclosed in < and >, searching follows an
> implementation-defined rule to find the file."
>
> 'Nuff said?
ANSI C doesn't say _anything_ about how the stuff inside the quotes or
angle brackets is translated to the filesystem (which makes sense, because
different operating systems have different path separators, etc.). All it
does say is that #include "..." defaults to an #include <...> form if the
quoted search fails.
As such, this _is_ a platform-dependent question, and is (believe it or
not) relevant to comp.os.msdos.djgpp.
--
Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"All the gods are dead / except the god of war."
/ Eldridge Cleaver
- Raw text -