Searches for the first occurrence of a value in a one-dimensional array.
[out] The array to search in.
[in] The searched value.
[in] The starting index from which the search begins.
[in] The length of the search range.
Returns the index of the first found element. If the value is not found, returns -1.