strange filenames in __FILE__ macro

David Lai lai at mips.COM
Sat Aug 26 02:37:46 AEST 1989


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 at mips.com || {ames,prls,pyramid,decwrl}!mips!lai)



More information about the Comp.std.c mailing list