This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: How to represent multi-line strings?
- To: 'vaithal s' <vaithal at hotmail dot com>, cygwin at cygwin dot com
- Subject: RE: How to represent multi-line strings?
- From: Bernard Dautrevaux <Dautrevaux at microprocess dot com>
- Date: Mon, 30 Jul 2001 17:29:00 +0200
> -----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/