[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) |
Hi,
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,
Daniel
- [Tinycc-devel] Build glibc, Issam Anour, 2014/09/28
- Re: [Tinycc-devel] Build glibc, Evan Langlois, 2014/09/28
- Re: [Tinycc-devel] Build glibc, Sylvain BERTRAND, 2014/09/29
- Re: [Tinycc-devel] Build glibc, Evan Langlois, 2014/09/29
- [Tinycc-devel] How to use char "\", JFC Morfin, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", Thomas Preud'homme, 2014/09/30
- Re: [Tinycc-devel] How to use char "\",
Daniel Glöckner <=
- Re: [Tinycc-devel] How to use char "\", Jefsey, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", Evan Langlois, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", JFC Morfin, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", Evan Langlois, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", arnold, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", Evan Langlois, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", Charles Gordon, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", Charles Gordon, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", Evan Langlois, 2014/09/30
- Re: [Tinycc-devel] How to use char "\", Charles Gordon, 2014/09/30