TutOptionSetStr set the value of a string option
option
option to set
str_val
string value to set option to
TRUE
if value is set successfully, FALSE
otherwise.
If TutOptionSetStr fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TutOptionSetStr sets the string value of option
to str_val
.
None
This example sets the value of the option named str_opt
to "hello world"
:
T_OPTION str_opt; str_opt = TutOptionLookup("str_opt"); if (str_opt == NULL) {/* error */
} if (!TutOptionSetStr(str_opt, "hello world")) {/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |