Csound Csound-dev Csound-tekno Search About

[Csnd] newline with printf

Date2010-06-19 12:31
FromChuckk Hubbard
Subject[Csnd] newline with printf
I've searched the mailing list for this, and it doesn't seem like
anyone's had this problem.
For me, with Csound 5.12.1 from source on Debian, I can't get a
newline from printf using either "\n", "%n", or any mixup of those
characters. Is printf supposed to be able to print newlines?
"\n" prints "n", while "%n" causes an error, "insufficient arguments
for format".

Thanks.
-Chuckk

Date2010-06-19 12:48
Fromluis jure
Subject[Csnd] Re: newline with printf
on 2010-06-19 at 14:31 Chuckk Hubbard wrote:

>For me, with Csound 5.12.1 from source on Debian, I can't get a
>newline from printf using either "\n", "%n", or any mixup of those
>characters. Is printf supposed to be able to print newlines?

doesn't \\n work? (it's documented in the manual page for the printk
opcode)




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-06-19 22:18
FromChuckk Hubbard
Subject[Csnd] Re: Re: newline with printf
Thanks, Luis.
Strange, though; the printk page doesn't have that in my copy. The
printks page has it, but it also says "%n", which doesn't work in
printf. As long as something works, I have no complaints!

Thanks for the tip.
-Chuckk

On Sat, Jun 19, 2010 at 2:48 PM, luis jure  wrote:
>
> on 2010-06-19 at 14:31 Chuckk Hubbard wrote:
>
>>For me, with Csound 5.12.1 from source on Debian, I can't get a
>>newline from printf using either "\n", "%n", or any mixup of those
>>characters. Is printf supposed to be able to print newlines?
>
> doesn't \\n work? (it's documented in the manual page for the printk
> opcode)
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>



-- 
http://www.badmuthahubbard.com


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-06-19 23:48
Fromluis jure
Subject[Csnd] Re: Re: Re: newline with printf
on 2010-06-20 at 00:18 Chuckk Hubbard wrote:

>Strange, though; the printk page doesn't have that in my copy. The
>printks page has it, but it also says "%n", which doesn't work in
>printf. 

one of these days i'll have to check all the printing opcodes. it seems not all
of them behave the same way (see my woes with prints on another thread). it
would be nice if all of them were consistent, or at least better documented
the idiosyncrasies of each one.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"