delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/30/12:12:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <17B78BDF120BD411B70100500422FC6309E30C@IIS000>
From: Bernard Dautrevaux <Dautrevaux AT microprocess DOT com>
To: "'vaithal s'" <vaithal AT hotmail DOT com>, cygwin AT cygwin DOT com
Subject: RE: How to represent multi-line strings?
Date: Mon, 30 Jul 2001 17:29:00 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019