TutOptionNamedLookup


Name

TutOptionLookup — look up a named option by name

Synopsis

T_OPTION TutOptionNamedLookup(name, option_name) 
T_STR name; 
T_STR option_name; 

Arguments

name — named options name (not case sensitive)

option_name — option name (not case sensitive)

Return Values

Returns pointer to the option if found, NULL otherwise.

Diagnostics

If TutOptionNamedLookup fails, it returns NULL and sets the global SmartSockets error number to:

Description

TutOptionNamedLookup returns a pointer to the option option_name found for the named options name name, or NULL if no such option exists.

Caution

None

See Also

TutOptionCreate

Examples

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