Alternate Entry Name: .PRINT
B: ret = print( string, format, arg1, arg2, ..., argn );
/* C users use "sprintf" */
PRINT writes "arg1" through "argn" out (in ASCII) into the vector "string" using the "format" given. The string "format" may be in any form acceptable to PRINTF.
auto v[20], a, b, s; s = "are the result"; a = 5; b = 0777; print(v, "%d and %o %ss.*n", a, b, s);
will leave
"5 and 777 are the results.*n"
in "v".
In previous releases of the UW Tools package, PRINT returned a pointer to "string". It now returns the result returned by the PRINTF function.
Copyright © 1996, Thinkage Ltd.