Get number of variables between two curly braces
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | handler | File handler from which list number is extracted |
||
integer, | intent(out) | :: | count | Extracted count |
subroutine get_count_within_braces(handler, count)
!< Get number of variables between two curly braces
implicit none
integer, intent(in) :: handler
!< File handler from which list number is extracted
integer, intent(out) :: count
!< Extracted count
integer :: skip
! skipping lines outside braces
skip = get_number_of_line('{', handler)
! finding actual count if any
count = get_number_of_line('}', handler)
end subroutine get_count_within_braces