TipcMsgExistsNamed determines if a field exists in a message, using a name
msg
message to check
name
name of the field
exists
pointer to a boolean indicating whether or not the field exists
TRUE
if the get was successful, FALSE
otherwise.
None
TipcMsgExistsNamed checks to see if the field indicated by the name exists in the message. The exists return value is set to TRUE
if the field exists, FALSE
otherwise.
This example checks to see if a field named "foo
" exists in the message:
T_BOOL status; T_BOOL exists; status = TipcMsgExistsNamed(msg, "foo", &exists); if (status == FALSE) {
return
; /* error */
} if (exists == TRUE) {/* field exists */
}
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |