| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | i | ||||
| character(len=*), | public, | parameter | :: | nl | = | new_line('a') |
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