Csound Csound-dev Csound-tekno Search About

Re: \\n, \\t etc in printks strings (Re: WaveIn in DirectCsound)

Date1999-02-09 22:26
FromSergey Batov
SubjectRe: \\n, \\t etc in printks strings (Re: WaveIn in DirectCsound)
Hi,

I wrote:

printks "k_in=%6.2f\\n", 0.5, k_in, 0,0,0

and got:

orchname:  wavein.orc
scorename: wavein.sco
sorting score ...
	... done
orch compiler:
ERROR in orc: char '\' after '\' in line 8!

press  to terminate program...

Regards,
Sergey Batov   batov@glasnet.ru

----------
> Îò: rasmus ekman 
> Êîìó: Csound list 
> Òåìà: \\n, \\t etc in printks strings (Re: WaveIn in DirectCsound)
> Äàòà: 9 ôåâðàëÿ 1999 ã. 21:32
> 
> David Boothe wrote:
> > 
> > You can format the 'k_in' value with  C-style printf() syntax, except
it
> > doesn't like "\n" for some reason. (Anybody know why that is?)
> 
> On the PC, the new line and tab characters must be preceded by
> two backslashes, not one.  - eg, \\t, \\n.
> (not sure about other systems)
>