Csound Csound-dev Csound-tekno Search About

[Csnd] How to print % ?

Date2009-12-07 19:05
FromRene Djack
Subject[Csnd] How to print % ?
Hi list,

A simple and may be stupid question:

How to print "%" within csound?

I have tried all following by i always get a segmentation fault.

prints "%"
prints "%%"

Sformat        = "%"
prints Sformat

Sformat        = "%%"
prints Sformat

Sformat sprintf    "%%.%d f\t", 0
prints Sformat

I am on ubuntu...

Cheers,
René

Date2009-12-07 19:16
FromVictor Lazzarini
Subject[Csnd] Re: How to print % ?
Try using

puts "%", 1
On 7 Dec 2009, at 19:05, Rene Djack wrote:

> Hi list,
>
> A simple and may be stupid question:
>
> How to print "%" within csound?
>
> I have tried all following by i always get a segmentation fault.
>
> prints "%"
> prints "%%"
>
> Sformat        = "%"
> prints Sformat
>
> Sformat        = "%%"
> prints Sformat
>
> Sformat sprintf    "%%.%d f\t", 0
> prints Sformat
>
> I am on ubuntu...
>
> Cheers,
> René



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-12-07 19:50
FromRene Djack
Subject[Csnd] Re: Re: How to print % ?
This works.
Thanks a lot

Cheers,
René




2009/12/7 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
Try using

puts "%", 1

On 7 Dec 2009, at 19:05, Rene Djack wrote:

Hi list,

A simple and may be stupid question:

How to print "%" within csound?

I have tried all following by i always get a segmentation fault.

prints "%"
prints "%%"

Sformat        = "%"
prints Sformat

Sformat        = "%%"
prints Sformat

Sformat sprintf    "%%.%d f\t", 0
prints Sformat

I am on ubuntu...

Cheers,
René



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"