TipcPropertiesGetCount


Name

TipcPropertiesGetCount — get the count of name-value pairs in the properties table

Synopsis

T_BOOL TipcPropertiesGetCount(props, count_return) 
T_IPC_PROPERTIES props; 
T_INT4 *count_return; 

Arguments

props — properties table

count_return — pointer to an integer

Return Values

TRUE if count returns successfully, FALSE otherwise.

Diagnostics

If TipcPropertiesGetCount fails, it returns FALSE and sets the global SmartSockets error code to:

Description

TipcPropertiesGetCount returns the number of name-value pairs in the properties table.

Caution

None

See Also

TipcPropertiesSet, TipcPropertiesGet, TipcPropertiesGetDefault

Examples

This example gets the number of name-value pairs in the table:

T_IPC_PROPERTIES props; 
T_BOOL status; 
T_INT4 count; 
 
status = TipcPropertiesGetCount(props, &count); 
if (!status) { 
  return;  /* error */ 
} 
 
TutOut("Num of props = <%d>\n", count); 

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