TutOut


Name

TutOut — unconditional printf-style output to an output window

Synopsis

void TutOut(format_str, ...) 
T_STR format_str; 

Arguments

format_strprintf-style format string

additional args — printf-style arguments

Return Values

None

Diagnostics

None

Description

TutOut unconditionally prints to the output window of the SmartSockets process with which the call is being used. TutOut is useful for printing error and informational messages. It supports all the conversion specifications that printf does (%f, %g, %d, %s, and so on). See a C reference manual for more information on the conversion specifications.

The output function used by TutOut can be set with TutSetOutputFunc.

Caution

None

See Also

TutSetOutputFunc, TutWarning

Examples

This example uses TutOut for error messages:

/* perform some processing */ 
  if (error_occurs) { 
    TutOut("ERROR:could not process data.\n"); 
    return FALSE;  
  }  

TIBCO SmartSockets™ Utilities
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com