find_index_in_character_array Function

private pure function find_index_in_character_array(name, array) result(match_idx)

Function to locate the index of a given character in a character array. Iterates over the elements and returns on the first hit, if no match was found zero is returned.

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: name

the name to search for

character(len=*), intent(in) :: array(:)

array with the names to search in

Return Value integer

index of first match


Contents

None