Free all options of a section.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_ini), | intent(inout) | :: | self | File data. |
||
character, | intent(in) | :: | section_name | Section name. |
||
character, | intent(in) | :: | option_name | Option name. |
elemental subroutine free_option_of_section(self, section_name, option_name)
!< Free all options of a section.
class(file_ini), intent(inout) :: self !< File data.
character(*), intent(in) :: section_name !< Section name.
character(*), intent(in) :: option_name !< Option name.
integer(I4P) :: s !< Counter.
s = self%index(section_name=section_name)
if (s>0) call self%sections(s)%free_option(option_name=option_name)
endsubroutine free_option_of_section