How to represent multi-line strings?

Bernard Dautrevaux Dautrevaux@microprocess.com
Mon Jul 30 08:54:00 GMT 2001


> -----Original Message-----
> From: vaithal s [ mailto:vaithal@hotmail.com ]
> Sent: Monday, July 30, 2001 4:58 PM
> To: cygwin@cygwin.com
> 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:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 

--
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/



More information about the Cygwin mailing list