mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-16 17:11:53 -05:00
22 lines
507 B
Fortran
22 lines
507 B
Fortran
subroutine fmtmsg(msg,iz)
|
|
|
|
character*(*) msg
|
|
|
|
! Convert all letters to upper case
|
|
iz=len(msg)
|
|
do i=1,iz
|
|
if(msg(i:i).ge.'a' .and. msg(i:i).le.'z') &
|
|
msg(i:i)= char(ichar(msg(i:i))+ichar('A')-ichar('a'))
|
|
if(msg(i:i).ne.' ') iz=i
|
|
enddo
|
|
|
|
do iter=1,37 !Collapse multiple blanks into one
|
|
ib2=index(msg(1:iz),' ')
|
|
if(ib2.lt.1) go to 100
|
|
msg=msg(1:ib2)//msg(ib2+2:)
|
|
iz=iz-1
|
|
enddo
|
|
|
|
100 return
|
|
end subroutine fmtmsg
|