TutOptionSetRequired set whether or not an option is required
option
option to set
required
sets whether or not the option is required
TRUE
if operation was successful, FALSE
otherwise.
If TutOptionSetRequired fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TutOptionSetRequired sets whether or not option
is required. A required option is an option that cannot be unset.
None
TutOptionGetRequired, TutOptionLookup
This example makes an option required:
T_OPTION opt; opt = TutOptionLookup("any_option"); if (opt == NULL) {/* error */
} if (!TutOptionSetRequired(opt, TRUE)) {/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |