Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: $Revision: 1.6.2.16 $; site prism.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!mit-eddie!think!prism!matt
From: matt@prism.UUCP
Newsgroups: net.micro.pc
Subject: Re: Pathnames in "C" compilers (Help!)
Message-ID: <7700015@prism.UUCP>
Date: Tue, 24-Sep-85 11:07:00 EDT
Article-I.D.: prism.7700015
Posted: Tue Sep 24 11:07:00 1985
Date-Received: Sun, 29-Sep-85 06:22:30 EDT
References: <450@philabs.UUCP>
Lines: 27
Nf-ID: #R:philabs:-45000:prism:7700015:000:1233
Nf-From: prism!matt    Sep 24 11:07:00 1985


> /* Written  2:58 pm  Sep 22, 1985 by johnl@ima in prism:net.micro.pc */
> /* Written  7:38 pm  Sep 20, 1985 by brb@philabs in ima:net.micro.pc */
> > I am unable to open files using a directory search with either the
> > Mark Williams or Lattice "C" compilers. ...
> > The function:
> >           infile=fopen("c:\usr\text\things.txt","r")
> > returns NULL to infile.
> > The function:
> >           infile=fopen("things.txt","r")
> > does NOT return NULL -- it succeeds in opening the file ...
> 
> Try opening "c:\\usr\\text\\things.txt".  Remember, this is C and \t
> turns into a tab character.
> 
> John Levine, ima!johnl

You could also take advantage of the fact that MS-DOS internally allows
either forward or backward slash as a path separator, so it's perfectly
acceptable to use "C:/usr/text/things" (unless Microschlock decides to
stop supporting this feature in some future DOS version).

-----------------------------------------------------------------------------
 Matt Landau            {cca, ihnp4, inmet, mit-eddie, wjh12}...
 Mirror Systems, Inc.                                   ...mirror!prism!matt
 Cambridge, MA		(617) 661-0777
-----------------------------------------------------------------------------