Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site ecsvax.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!ecsvax!bet
From: bet@ecsvax.UUCP (Bennett E. Todd III)
Newsgroups: net.micro.pc
Subject: Re: Pathnames in "C" compilers (Help!)
Message-ID: <474@ecsvax.UUCP>
Date: Mon, 23-Sep-85 14:21:57 EDT
Article-I.D.: ecsvax.474
Posted: Mon Sep 23 14:21:57 1985
Date-Received: Wed, 25-Sep-85 03:28:16 EDT
References: <450@philabs.UUCP>
Reply-To: duccpc!bet@ecsvax.UUCP (Bennett E. Todd III)
Distribution: net
Organization: Duke University Computation Center
Lines: 18

In article <450@philabs.UUCP> brb@philabs.UUCP (Brian Bertan) writes:
>          infile=fopen("c:\usr\text\things.txt","r")

The '\' character is special in C character strings. To use it you must
write two of them:

          infile=fopen("c:\\usr\\text\\things.txt","r")

Why, oh why, did Microsoft elect to use the quoting character on the
operating system they seem to be trying to migrate DOS towards for the
file pathname separator? Oh well.
-Bennett
-- 

"Hypocrisy is the vaseline of social intercourse." (Who said that?)

Bennett Todd -- Duke Computation Center, Durham, NC 27706-7756; (919) 684-3695
UUCP: ...{decvax,seismo,philabs,ihnp4,akgua}!mcnc!ecsvax!duccpc!bet