This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to represent multi-line strings?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]