TutWarning


Name

TutWarning — unconditional printf-style warning to an output window

Synopsis

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

Arguments

format_strprintf-style format string

additional args — printf-style arguments

Return Values

None

Diagnostics

None

Description

TutWarning unconditionally prints a warning to the output window of the SmartSockets process that the call is being used with. The output generated is preceded with the word WARNING. This function is useful for printing error messages. It supports all the conversion specifications that printf does (%f, %g, %d, %s, and so on). See any C reference manual for more information on the conversion specifications.

Caution

None

See Also

TutOut

Examples

This example uses TutWarning for important error messages:

/* perform some processing */ 
if (error_occurs) { 
    TutWarning("Could not process data.\n"); 
    return FALSE;  
  }  

The code issues this output:

WARNING: Could not process data. 

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