Append a character string to the current record of the default unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string | |||
integer, | intent(out), | optional | :: | iostat |
subroutine put_CH (string, iostat) character(LEN=*), intent(in) :: string integer, intent(out), optional :: iostat if(PRESENT(iostat)) then write(*, FMT='(A)', ADVANCE='NO', IOSTAT=iostat) string else write(*, FMT='(A)', ADVANCE='NO') string endif ! Finish end subroutine put_CH