summaryrefslogtreecommitdiff
path: root/lib/gen_echocall.f90
blob: 35ec7608b5bae771c592fd0b8d6b9e794452e588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
subroutine gen_EchoCall(callsign,itone)

  character*6 callsign
  integer itone(6)
  
  itone=0                                             !Default character is blank
  do i=1,len(trim(callsign))
     m=ichar(callsign(i:i))
     if(m.ge.48 .and. m.le.57) itone(i)=m-47       !0-9
     if(m.ge.65 .and. m.le.90) itone(i)=m-54       !A-Z
     if(m.ge.97 .and. m.le.122) itone(i)=m-86      !a-z
  enddo

  return
end subroutine gen_EchoCall