TipcPropertiesGetDefault


Name

TipcPropertiesGetDefault — get the default property value for the specified property name

Synopsis

T_STR TipcPropertiesGetDefault(props, name) 
T_IPC_PROPERTIES props; 
T_STR name; 

Arguments

props — properties table

name — property name

Return Values

TipcPropertiesGetDefault returns the default value associated with the property name on success and NULL otherwise.

Diagnostics

If TipcPropertiesGetDefault fails, it returns NULL and sets the global SmartSockets error code to one of:

Description

TipcPropertiesGetDefault returns the default value associated with the property name. If the property name is not found then it returns NULL.

Caution

None

See Also

TipcPropertiesGet, TipcPropertiesGetCount, TipcPropertiesSet

Examples

This example gets the default value for a property:

T_IPC_PROPERTIES props; 
T_STR  value_return;  
 
value_return = TipcPropertiesGetDefault(props, "prop1"); 
TutOut("The Key is prop1: Value is %s\n", value_return); 

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