printf inside for loop



On 8/4/07, Edwin Woollett <woollett at charter.net> wrote:

> (%i42) for n thru 3 do ev( printf(false,"~d",m),m=n );
> (%o42)          done

Ted, printf(false, ...) returns a string. To print stuff to the console,
try printf(true, ...) instead. I guess the documentation could be clarified.

Or if you want to print to a file, try:
 s : openw("foo.out");
printf(s, ...);

HTH
Robert Dodier