TutOptionGetNum get the value of a numeric option
option
option to get numeric value of
num_val_return
pointer to T_REAL8 field into which TutOptionGetNum copies the numeric value
TRUE
if value is retrieved successfully, FALSE
otherwise.
If TutOptionGetNum fails, it returns FALSE
and sets the global SmartSockets error number to one of:
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.
None
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 |