| Sometimes when troubleshooting in other languages I might change a
sprintf format to be static, usually to help rule out whatever issue I
might be trying to track down.
For example I might change:
Sbuf sprintfk "this %s work", ktest==1 ? "does" : "doesn't"
to:
Sbuf sprintfk "this s work" ;, ktest==1 ? "does" : "doesn't"
It seems csound doesn't like this, and complains with:
error: Unable to find opcode entry for 'sprintfk' with matching argument types:
Found: S sprintfk S
I know this basically turns sprintfk into strcpyk, but it seems like a
trivial change that could add a little flexibility. I only tested
with sprintfk, but I assume the same would apply for printf and
sprintf too.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |