Newsgroups: comp.std.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: Question on backslash in string in define
Message-ID: <1990Sep9.224807.17776@zoo.toronto.edu>
Organization: U of Toronto Zoology
References: <2480@polari.UUCP>
Date: Sun, 9 Sep 90 22:48:07 GMT

In article <2480@polari.UUCP> 6sigma2@polari.UUCP (Brian Matthews) writes:
>If I have the following:
>
>#define STR "12\
>34"
>char *x = STR;
>
>what should x point to? "1234", "124", "hello world" :-), or is it
>undefined?

It is perfectly well defined.  The backslash-newline sequence vanishes
completely before anything else is done.  x points to "1234".
-- 
TCP/IP: handling tomorrow's loads today| Henry Spencer at U of Toronto Zoology
OSI: handling yesterday's loads someday|  henry@zoo.toronto.edu   utzoo!henry
