Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 Unisoft-Cosmos; site sagan.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!well!micropro!sagan!frank
From: frank@sagan.UUCP (Frank Whaley)
Newsgroups: net.micro.pc
Subject: Re: Pathnames in "C" compilers (Help!)
Message-ID: <145@sagan.UUCP>
Date: Wed, 25-Sep-85 19:24:46 EDT
Article-I.D.: sagan.145
Posted: Wed Sep 25 19:24:46 1985
Date-Received: Sat, 28-Sep-85 07:13:58 EDT
References: <450@philabs.UUCP> <103700016@ima.UUCP>
Organization: MicroPro Int'l Corp., San Rafael, CA
Lines: 23
Summary: Un*x style works too

In article <103700016@ima.UUCP>, johnl@ima.UUCP writes:
> > 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.
> PS:  MS-DOS and the C language clearly were not born to be friends.

Note that most library implementations and MS-D*S itself allow the ``real''
version "c:/usr/text/things.txt".
Guess I'll have to post source to SWITCH.COM which lets you define your
own switch char -- anything other than '/' turns off '\' mode.

-- 
frank
... Frank Whaley, MicroPro Product Development
{dual,hplabs,glacier,lll-crg}!well!micropro!sagan!frank
"I knew the bride when she used to rock and roll"