TutErrNumToStr


Name

TutErrNumToStr— convert a global SmartSockets error number into a error string

Synopsis

T_STR TutErrNumToStr(err_num) 
T_INT4 err_num; 

Arguments

err_num — the global SmartSockets error number to be converted

Return Values

A string describing the error.

Diagnostics

None

Description

This function converts a SmartSockets error number into a string describing that error. If the error number does not have a matching error string, the string "unknown error x" is returned, with x set to the error number in question.

Caution

The value returned by TutErrNumToStr points directly into an internal data structure and should not be modified. The contents of the value are guaranteed to be preserved until the next call to a SmartSockets function.

See Also

TutErrNumGet, TutErrStrGet

Examples

This example prints the name of a retrieved error number:

err_num = TutErrNumGet(); 
TutOut("error: %s\n", TutErrNumToStr(err_num)); 

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