TutPtrAryChangeCbLookup look up a pointer array change callback
T_CB TutPtrAryChangeCbLookup(ptr_ary, change_func, arg
) T_PTR_ARYptr_ary
; T_PTR_ARY_CHANGE_CB_FUNCchange_func
; T_CB_ARGarg
;
ptr_ary
pointer array to look up the change callback for
change_func
callback function
arg
callback function argument
Returns callback if successful, NULL
otherwise.
If TutPtrAryChangeCbLookup fails, it returns NULL
and sets the global SmartSockets error number to one of:
TutPtrAryChangeCbLookup returns the callback registered with TutPtrAryChangeCbCreate, if any. The arguments ptr_ary
, change_func
, and arg
must match precisely those used in TutPtrAryChangeCbCreate for the call to be successful.
None
This example looks up a change callback:
T_CB cb;
cb = TutPtrAryChangeCbLookup(ptr_ary, PtrAryChanged, NULL);
if (cb == NULL) {
/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |