www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/06/10:51:31

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: error : unknown escape sequence
Date: 6 Mar 2001 15:38:32 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 23
Message-ID: <98309o$25$1@nets3.rz.RWTH-Aachen.DE>
References: <982urm$kr3$1 AT newsg3 DOT svr DOT pol DOT co DOT uk>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 983893112 69 137.226.32.75 (6 Mar 2001 15:38:32 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 6 Mar 2001 15:38:32 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Deadline <No AT notright DOT co DOT uk> wrote:
> Hi have a look at the code below. rhide gives
>  the error: "unknown escape sequence: `\' followed by char code 0 * 20"
> this code compiles ok in Borland tclite.

The character code was 0x20, I guess, not 0*20. That's the ASCII code
for the space character. You obviously have a dangling space between
the '\' and the actual end of the line.

If Borland groks that, their preprocessor is broken.

> It looks like the end of the line backslash may be the problem but what
> could I use to continue the next line if not \ ?

Direct string constant concatenation:

printf("\Numbers:          %i\n         %i\n         %i\n"
	  "         %i\n   %i",a,b,c,d,e);


-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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