TutOptionGetName


Name

TutOptionGetName — get the name of an option

Synopsis

T_STR TutOptionGetName(option) 
T_OPTION option; 

Arguments

option — option from which to get the name

Return Values

Name of option

Diagnostics

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

Description

TutOptionGetName returns the name of option.

Caution

The pointer returned by this function points to the actual storage used by the option, and thus should not be modified.

See Also

TutOptionCreate, TutOptionLookup

Examples

This example prints the name of an option from a change callback (see TutOptionChangeCbCreate on page 151):

void T_ENTRY OptChanged(option, data, arg) 
T_OPTION option; 
T_OPTION_CHANGE_CB_DATA data; 
T_CB_ARG arg; 
{ 
  TutOut("Option name: %s\n",TutOptionGetName(option)); 
} /* OptChanged */ 

TIBCO SmartSockets™ Utilities
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com