TutOptionGetKnown retrieves the known state for an option
option
option to determine if the value is known
known_return
pointer to storage location to place current known property value
TRUE
if able to determine known state of option
, FALSE
otherwise.
If TutOptionGetKnown fails, it returns FALSE
and sets the global SmartSockets error number to:
TutOptionGetKnown retrieves the current known state of option
, such as set to a valid value, and stores it in the location pointed to by known_return
.
None
TutOptionSetUnknown, TutOptionLookup
This example determines if the value of the option str_opt
is known:
T_OPTION str_opt; T_BOOL known; str_opt = TutOptionLookup("str_opt"); if (str_opt == NULL) {/* error */
} if (!TutOptionGetKnown(str_opt, &known)) {/* error */
} TutOut("str_opt value is %s\n", known ? "KNOWN" : "UNKNOWN");
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |