TutOptionDestroy destroy an existing option
option
option to destroy
TRUE
if the option was successfully destroyed, FALSE
otherwise.
If TutOptionDestroy fails, it returns FALSE
and sets the global SmartSockets error number to:
TutOptionDestroy destroys option
. All storage allocated for option
is deallocated.
In general, it is unsafe to destroy standard options that are provided in SmartSockets processes. These processes frequently fail in unexpected ways if any of the standard options have been destroyed.
TutOptionCreate, TutOptionLookup
This example destroys the option named bool_opt
:
T_OPTION option;
T_BOOL status;
/* Look up the option first
*/
option = TutOptionLookup("bool_opt");
if (option == NULL) {
/* error */
}
if (!TutOptionDestroy(option)) {
/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |