tinycc-devel
[Top][All Lists]
Advanced

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

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


From: Christian JULLIEN
Subject: [Tinycc-devel] RE : How to use char "\"
Date: Tue, 30 Sep 2014 13:57:47 +0200 (CEST)

Hi!

You need two \\
=> strpbrk (file_name,"\\*?")

First '\' is an escape for next character which is the '\' you want to use.

Christian
----- Message d'origine -----
De : "JFC Morfin" <address@hidden>
Date mar. 30/09/2014 12:31 (GMT +02:00)
À : "address@hidden" <address@hidden>
Objet : [Tinycc-devel] How to use char "\"

May be not the right place to ask?
I am trying to port my old bcc32 libraries under tcc.

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".

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.

Thank you for your help.
jfc


_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

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