TutOptionGetNum


Name

TutOptionGetNum — get the value of a numeric option

Synopsis

T_BOOL TutOptionGetNum(option, num_val_return) 
T_OPTION option; 
T_REAL8 *num_val_return;  

Arguments

option — option to get numeric value of

num_val_return — pointer to T_REAL8 field into which TutOptionGetNum copies the numeric value

Return Values

TRUE if value is retrieved successfully, FALSE otherwise.

Diagnostics

If TutOptionGetNum fails, it returns FALSE and sets the global SmartSockets error number to one of:

Description

TutOptionGetNum gets the numeric value of option. The value is copied into storage pointed to by num_val_return, which must be managed by the caller.

Caution

None

See Also

TutOptionSetNum

Examples

This example gets the value of the option named num_opt:

T_OPTION num_opt; 
T_REAL8 num_val; 
num_opt = TutOptionLookup("num_opt"); 
if (num_opt == NULL) { 
  /* error */ 
} 
if (!TutOptionGetNum(num_opt, &num_val)) { 
  /* error */ 
} 

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