TutOptionLookup


Name

TutOptionLookup — look up an option by name

Synopsis

T_OPTION TutOptionLookup(name) 
T_STR name; 

Arguments

name — option name (not case sensitive)

Return Values

Returns pointer to the option if found, NULL otherwise.

Diagnostics

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

Description

TutOptionLookup returns a pointer to the option name, or NULL if no such option exists.

Caution

None

See Also

TutOptionCreate

Examples

This example looks up the option named bool_opt:

T_OPTION option; 
 
option = TutOptionLookup("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