functioninset
character(len=:) function inset(string) result(longer)
Arguments
| Name | Type | Intent | Attributes | Description |
| string | character(len=*) | in | | |
Result
| Name | Type | Attributes | Description |
| longer | character(len=:) | allocatable | |
Source
Show the code
function inset(string) result(longer)
character(len=*),intent(in) :: string
character(len=:),allocatable :: longer
character(len=*),parameter :: nl=new_line('a')
integer :: i
longer=''
do i=1,len(string)
longer=longer//string(i:i)
if(string(i:i).eq.nl)then
longer=longer//' '
endif
enddo
end function inset
Graphs
Called by
Variables
| Name | Type | Attributes | Default | Description |
| i | integer | | | |
| nl | character(len=*) | parameter | new_line('a') | |