TutOptionGetName get the name of an option
option
option from which to get the name
Name of option
If TutOptionGetName fails, it returns NULL
and sets the global SmartSockets error number to:
TutOptionGetName returns the name of option
.
The pointer returned by this function points to the actual storage used by the option, and thus should not be modified.
TutOptionCreate, TutOptionLookup
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 |