TipcMsgUpdateNamedUtf8ArrayPtr update a named pointer to a field containing an array of UTF8 fields in a message
T_BOOL TipcMsgUpdateNamedUtf8ArrayPtr(msg
,name
, *value
,size
, *field_return
) T_IPC_MSGmsg
; T_STRname
; T_STR *value
; T_INT4size
; T_IPC_MSG_FIELD *field_return
;
msg
message to update field in
name
name of the field
value
new value of the field
size
number of elements in the field
field_return
optional value to return field (use NULL
if not needed)
TRUE
if the update was successful, FALSE
otherwise.
If TipcMsgUpdateNamedUtf8ArrayPtr fails, it returns FALSE
and sets the global SmartSockets error number to one of:
msg
, name
or value
is nullmsg
was not a valid messagemsg
was marked read-only. This happens if the message is a field in another message.value
was not a valid valueTipcMsgUpdateNamedUtf8ArrayPtr updates a UTF8_ARRAY pointer field specified by field name.
This example changes the value of the named field "data
":
T_STR *data; T_INT4 size; if (!TipcMsgUpdateNamedUtf8ArrayPtr(msg, "data", data, size, T_NULL)) {return
; /* error */
}
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |