| delorie.com/archives/browse.cgi | search |
| From: | "Deadline" <No AT notright DOT co DOT uk> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: error : unknown escape sequence |
| Date: | Tue, 6 Mar 2001 15:52:44 -0000 |
| Organization: | Customer of Energis Squared |
| Lines: | 30 |
| Message-ID: | <98316n$m6m$1@newsg3.svr.pol.co.uk> |
| References: | <982urm$kr3$1 AT newsg3 DOT svr DOT pol DOT co DOT uk> <98309o$25$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> |
| NNTP-Posting-Host: | modem-13.androstenedione.dialup.pol.co.uk |
| X-Trace: | newsg3.svr.pol.co.uk 983894039 22742 62.136.80.13 (6 Mar 2001 15:53:59 GMT) |
| NNTP-Posting-Date: | 6 Mar 2001 15:53:59 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2014.211 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Thanks Hans! , on closer inspection I had an extra \
Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> wrote in message
news:98309o$25$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE...
> 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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |