Article View: comp.std.c
Article #493strange filenames in __FILE__ macro
From: David Lai
Date: Fri, 25 Aug 1989 16:37
Date: Fri, 25 Aug 1989 16:37
11 lines
821 bytes
821 bytes
Does the standard specify what characters are legal for a filename.
Specifically, when the __FILE__ macro is expanded, does the preprocessor
have to perform special excape sequence translations.
As an example, in MS-DOS systems the '\' character is prevalent in pathnames,
does each '\' in the pathname get translated to '\\' when expanding __FILE__?
How about filenames with '"' or "'" or non-printing characters?
--
"What is a DJ if he can't scratch?" - Uncle Jamms Army
David Lai (lai@mips.com || {ames,prls,pyramid,decwrl}!mips!lai)
Technical Details
Message-ID:
<26208@gumby.mips.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!vsi1!wyse!mips!laiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!vsi1!wyse!mips!lai From: lai@mips.COM (David Lai) Newsgroups: comp.std.c Subject: strange filenames in __FILE__ macro Message-ID: <26208@gumby.mips.COM> Date: 25 Aug 89 16:37:46 GMT Lines: 11