rciPrintf(3)

NAME
rciPrintf, rciPrintToTerminal
 -- RCI diagnostic print routines.

USAGE
rciPrintf (format [,arg] ...)
   char *format;

rciPrintToTerminal (on)
   int on;

ARGUMENTS

format --
    printf() style format string.

on --
    Set true to route printing to the program's terminal.

DESCRIPTION
rciPrintf() can be used by any part of an RCI program to print diagnostic information. The usage is the same as printf(), except that the total size of the output string produced should not exceed MAX_PMSG (defined in the source file supportFxns.c and 255 at the time of this writing).

On Sun4 and MicroVAX systems, the output from rciPrintf() goes, by default, to the console of the CPU hosting the control task, unless rciPrintf() is called from the planning level, in which case output goes to the program's standard output. rciPrintToTerminal() can be used to route the default output of rciPrintf() to the program's terminal, but only for control tasks running on the arbiter CPU.

On SGI and VxWorks systems, the output from rciPrintf() goes to the program's standard output, and rciPrintToTerminal() has no effect.