assoc_list_print Subroutine

public subroutine assoc_list_print(a)

Arguments

Type IntentOptional Attributes Name
type(assoc_list_t), intent(in) :: a

Contents

Source Code


Source Code

subroutine assoc_list_print(a)
type(assoc_list_t), intent(in) :: a

integer :: i

if (a%nitems > 0) then
   print "(a)", "---------------------"
   do i = 1, a%nitems
      print "(3x,a,a,a)", trim(a%key(i)), " : ", trim(a%value(i))
   enddo
   print "(a)", "---------------------"
endif
end subroutine assoc_list_print