TutOutFlush


Name

TutOutFlush — unconditional printf-style output to stdout and flush

Synopsis

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

Arguments

format_strprintf-style format string

additional arguments — printf-style arguments

Return Values

None

Diagnostics

None

Description

TutOutFlush unconditionally prints to the output window and also causes any unwritten data to be flushed immediately. TutOutFlush is useful for printing error and informational messages. It supports all the conversion specifications that printf does.

The flush function used by TutOutFlush can be set with TutSetOutFlushFunc.

Caution

None

See Also

TutGetOutFlushFunc, TutSetOutFlushFunc

Examples

This example uses TutOutFlush to display error messages:

if (error_occurs) { 
  TutOutFlush("Error: Could not read message\n"); 
} /* if */ 
 

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