Guest
Dear skilled cadencers,
I'd like to write a wrapper for the printf() function. The problem is
that I do not know how to have a variable number argument. I tried
with @rest:
procedure( myPrint(port str @rest args)
fprintf(port str args)
newline(port)
)
however this won't work because args is a list and fprintf (or printf)
complains about that.
How can I achieve this task?
Thanks,
mb
I'd like to write a wrapper for the printf() function. The problem is
that I do not know how to have a variable number argument. I tried
with @rest:
procedure( myPrint(port str @rest args)
fprintf(port str args)
newline(port)
)
however this won't work because args is a list and fprintf (or printf)
complains about that.
How can I achieve this task?
Thanks,
mb