TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Darin Mcbride
from: Robin Sheppard
date: 1998-08-12 00:00:00
subject: `file.h` vs.

RS> #include "stdio.h"  /* I'd use , but it 
 RS> doesn't really matter */
 
 JB> actually it makes a difference....  is in an
"include directory"
 JB> while "stdio.h" is in the current directory.

 DM> Not quite...

 DM> #include's that use double-quotes start looking in the current
 DM> directory.   Should that file not exist in the current (or, rather, 
 DM> source) directory, the preprocessor treats it as if it were 
 DM> #include'd via angle brackets.  This, of course, means it 
 DM> searches the "include path" (whatever that may mean for 
 DM> your compiler - it may even include using some environment 
 DM> variable!).

   Roger that.  With QuickC, using angle brackets means it searches the 
   regular include directory, and nothing else.  Using double quotes means 
   it searches the directory containing the current source file- usually, 
   the current directory, and if it can't then find it, it searches the 
   include directory (or directories).  In my case, this is any path in the 
   INCLUDE environment variable.
   
... I made millions in software, then lost it at the track.. ack!
___ Blue Wave/DOS v2.30 [NR]

--- Maximus 2.01wb
* Origin: Basic'ly Computers: Mooo-ing Right Along. (1:153/9)
SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728 810
SEEN-BY: 639/252 670/213 218
@PATH: 153/104 2 716 7715 140/1 270/101 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.