> -----Original Message-----
> From: vaithal s [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 30, 2001 4:58 PM
> To: [EMAIL PROTECTED]
> Subject: How to represent multi-line strings?
> 
> 
> Hello,
> 
> I am a windows programmer. I am new to this list. I want to 
> know, how to 
> represent multi-line strings in GNU compliers? In MSVC, we represent 
> multiline strings like this:
> char *str = "This is\
>              a multi-line\
>              string";
> 

Although this is quite OT:

        char* str = "This is\na multi-line\nstring";

The beautiful here is that this EVEN work with MSVC :-) :) :) :)

HTH

        Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:    +33 (0) 1 47 68 80 80
Fax:    +33 (0) 1 47 88 97 85
e-mail: [EMAIL PROTECTED]
                [EMAIL PROTECTED]
-------------------------------------------- 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to