TutErrNumGetC


Name

TutErrNumGetC — get the value of the C error number

Synopsis

T_INT4 TutErrNumGetC() 

Arguments

None

Return Values

The value of the C error number.

Diagnostics

None

Description

The operating system error number is a C-specific value indicating how the last C function failed. The error number is valid only when TutErrNumGet reports T_ERR_C.

This error number is stored in a value for each thread to accommodate multi-threaded programs.

Caution

TutErrNumGetC should only be called when TutErrNumGet returns T_ERR_C.

See Also

TutErrNumGet, TutErrNumGetOs, TutErrNumGetSocket

Examples

This example checks if a C-specific error occurred and prints the related C error code:

if (TutErrNumGet() == T_ERR_C) { 
  TutOut("C error %d occurred.\n", TutErrNumGetC()); 
} 

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