Function tari_wallet_ffi::seed_words_get_at[][src]

#[no_mangle]pub unsafe extern "C" fn seed_words_get_at(
    seed_words: *mut TariSeedWords,
    position: c_uint,
    error_out: *mut c_int
) -> *mut c_char

Gets a seed word from TariSeedWords at position

Arguments

seed_words - The pointer to a TariSeedWords 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 c_char - Returns a pointer to a char array. Note that it returns an empty char array if TariSeedWords collection is null or the position is invalid

Safety

The string_destroy method must be called when finished with a string from rust to prevent a memory leak