Function tari_wallet_ffi::contacts_get_at [−][src]
#[no_mangle]pub unsafe extern "C" fn contacts_get_at(
contacts: *mut TariContacts,
position: c_uint,
error_out: *mut c_int
) -> *mut TariContact
Gets a TariContact from TariContacts at position
Arguments
contacts
- The pointer to a TariContacts
position
- The integer position
error_out
- Pointer to an int which will be modified to an error code should one occur, may not be null. Functions
as an out parameter.
Returns
*mut TariContact
- Returns a TariContact, note that it returns ptr::null_mut() if contacts is
null or position is invalid
Safety
The contact_destroy
method must be called when finished with a TariContact to prevent a memory leak