TutOptionSetBool


Name

TutOptionSetBool — set the value of a boolean option

Synopsis

T_BOOL TutOptionSetBool(option, bool_val) 
T_OPTION option; 
T_BOOL bool_val; 

Arguments

option — option to set

bool_val — boolean value to set option to

Return Values

TRUE if value is set successfully, FALSE otherwise.

Diagnostics

If TutOptionSetBool fails, it returns FALSE and sets the global SmartSockets error number to one of:

Description

TutOptionSetBool sets the boolean value of option to bool_val.

Caution

None

See Also

TutOptionGetBool

Examples

This example sets the value of the option named bool_opt to TRUE:

T_OPTION bool_opt; 
 
bool_opt = TutOptionLookup("bool_opt"); 
if (bool_opt == NULL) { 
  /* error */ 
} 
if (!TutOptionSetBool(bool_opt, TRUE)) { 
  /* error */ 
} 

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