Function flipperzero_sys::value_index_bool
source · pub unsafe extern "C" fn value_index_bool(
value: bool,
values: *const bool,
values_count: u8
) -> u8Expand description
Get the index of a bool array element which is equal to the given value.
Returned index corresponds to the first element found. If no suitable elements were found, the function returns 0.
@param value value to be searched. @param values pointer to the array to perform the search in. @param values_count array size.
@return value’s index.