Checks whether @needle exists in @haystack. If the element is found, %TRUE is
returned and the element’s index is returned in @index_ (if non-%NULL).
Otherwise, %FALSE is returned and @index_ is undefined. If @needle exists
multiple times in @haystack, the index of the first instance is returned.
This does pointer comparisons only. If you want to use more complex equality
checks, such as string comparisons, use g_ptr_array_find_with_equal_func().
Checks whether @needle exists in @haystack. If the element is found, %TRUE is returned and the element’s index is returned in @index_ (if non-%NULL). Otherwise, %FALSE is returned and @index_ is undefined. If @needle exists multiple times in @haystack, the index of the first instance is returned.
This does pointer comparisons only. If you want to use more complex equality checks, such as string comparisons, use g_ptr_array_find_with_equal_func().