TutOptionLookup look up a named option by name
name
named options name (not case sensitive)
option_name
option name (not case sensitive)
Returns pointer to the option if found, NULL
otherwise.
If TutOptionNamedLookup fails, it returns NULL
and sets the global SmartSockets error number to:
TutOptionNamedLookup returns a pointer to the option option_name
found for the named options name name
, or NULL
if no such option exists.
None
This example looks up the option named bool_opt
from the named options client_1
:
T_OPTION option;
option = TutOptionNamedLookup("client_1", "bool_opt");
if (option == NULL) {
/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |