[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] How to use char "\"

From: Daniel Glöckner
Subject: Re: [Tinycc-devel] How to use char "\"
Date: Tue, 30 Sep 2014 18:46:35 +0200
User-agent: Mutt/1.5.20 (2009-06-14)


On Wed, Oct 01, 2014 at 12:06:24AM +0800, Thomas Preud'homme wrote:
> > I have a problem with the char "\". For example in the line:
> > 
> >     strpbrk (file_name,"\*?")
> > 
> > ir order to know if i have a simple file name, tcc tells me "unknown
> > escape sequence".
> The manpage doesn't say that the strings accept escape sequence. Is it even 
> defined in the standard? Sounds like a bug in TinyCC.

Thomas, C does support the escape sequences \a, \b, \f, \n, \r, \t,
\v, \', \", \?, \\, \<3octal>, \x<2hex>, \u<4hex>, and \U<8hex>.
I guess BCC probably interpreted \* as \\*.

> > When I want use as a char both text[i]='\' and text[i]='\\' do not
> > work. Since I am there working on text strings I cannot equate '\' to
> > ascii 28 first.
> '\' should be correct. What is the error you get?

'\\' should be correct. What is the error you get?

Best regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]