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" <[email protected]>
Date mar. 30/09/2014 12:31 (GMT +02:00)
À : "[email protected]" <[email protected]>
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
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to